File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Assets/MRTK/SDK/Features/UX/Scripts/BoundsControl/Visuals Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments