Skip to content

Commit 312bcdc

Browse files
committed
Fix translation handle rotation
1 parent 1c30301 commit 312bcdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/Visuals/TranslationHandles.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ protected override Quaternion GetRotationRealignment(int handleIndex)
4646
// Align handle with its edge assuming that the prefab is initially aligned with the up direction
4747
if (VisualUtils.FaceAxisType[handleIndex] == CardinalAxisType.X)
4848
{
49-
return Quaternion.FromToRotation(Vector3.up, directionSign * Vector3.right);
49+
return Quaternion.FromToRotation(Vector3.forward, directionSign * Vector3.right);
5050
}
5151
else if (VisualUtils.FaceAxisType[handleIndex] == CardinalAxisType.Z)
5252
{
53-
return Quaternion.FromToRotation(Vector3.up, directionSign * Vector3.forward);
53+
return Quaternion.FromToRotation(Vector3.forward, directionSign * Vector3.forward);
5454
}
5555
else // y axis
5656
{

0 commit comments

Comments
 (0)