mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +00:00
GRIM: Fix wrong calculation of the angle between two actors.
This commit is contained in:
parent
e7789748cc
commit
6e3728b7c7
@ -804,7 +804,7 @@ void Actor::turn(int dir) {
|
||||
}
|
||||
|
||||
Math::Angle Actor::getYawTo(const Actor &a) const {
|
||||
Math::Vector3d forwardVec(_yaw.getSine(), _yaw.getCosine(), 0);
|
||||
Math::Vector3d forwardVec(-_yaw.getSine(), _yaw.getCosine(), 0);
|
||||
Math::Vector3d delta = a.getPos() - _pos;
|
||||
delta.z() = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user