Skip to content

Commit 8470abc

Browse files
committed
causes issues with gimbal locking...
1 parent 39148cf commit 8470abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Base.rte/AI/SharedBehaviors.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ function SharedBehaviors.GoToWpt(AI, Owner, Abort)
704704
obstacleState = Actor.DIGPAUSING; -- tunnel cavity not clear yet, so stay put and dig some more
705705
end
706706

707-
local aimAngle = Owner:GetAimAngle(false);
707+
local aimAngle = Owner:GetAimAngle(true);
708708
local AimVec = Vector(1, 0):RadRotate(aimAngle);
709709

710710
local angDiff = math.asin(AimVec:Cross(CurrDist.Normalized)); -- the angle between CurrDist and AimVec

0 commit comments

Comments
 (0)