Skip to content

Commit c6bbc78

Browse files
committed
fix: fixing a bug that caused roll to rotate the wrong way
1 parent 0639670 commit c6bbc78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/Scripts/Pinpoint/Probes/Controllers/CartesianProbeController.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,8 @@ public override void SetProbePosition()
756756
transform.position = Insertion.PositionWorldT();
757757
transform.RotateAround(_probeTipT.position, transform.up, Insertion.Yaw);
758758
transform.RotateAround(_probeTipT.position, transform.right, Insertion.Pitch);
759-
transform.RotateAround(_probeTipT.position, _probeTipT.up, Insertion.Roll);
759+
// Subtract roll to go clockwise
760+
transform.RotateAround(_probeTipT.position, _probeTipT.forward, -Insertion.Roll);
760761

761762
// Compute depth transform, if needed
762763
if (_depth != 0f)

0 commit comments

Comments
 (0)