Skip to content

Commit 122fe99

Browse files
authored
Merge pull request #3739 from Cameron-Micka/fix/fingerCursorSurfaceRotation
The finger cursor should align the inverse surface normal
2 parents 780fe28 + 3a42de0 commit 122fe99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit.SDK/Features/UX/Scripts/Cursors/FingerCursor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private void RotateToFinger(Transform target, float deltaTime, Quaternion pointe
250250

251251
private void RotateToSurfaceNormal(Transform target, float deltaTime, Vector3 surfaceNormal)
252252
{
253-
Quaternion targetRotation = Quaternion.LookRotation(surfaceNormal);
253+
Quaternion targetRotation = Quaternion.LookRotation(-surfaceNormal);
254254
target.rotation = Quaternion.Lerp(target.rotation, targetRotation, deltaTime / RotationLerpTime);
255255
}
256256
}

0 commit comments

Comments
 (0)