Skip to content

Commit 7f480da

Browse files
Correct face away logic
1 parent fa0e3fa commit 7f480da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/Constraints/FaceUserConstraint.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public bool FaceAway
3939
public override void ApplyConstraint(ref MixedRealityTransform transform)
4040
{
4141
Vector3 directionToTarget = transform.Position - CameraCache.Main.transform.position;
42-
transform.Rotation = Quaternion.LookRotation(faceAway ? -directionToTarget : directionToTarget);
42+
transform.Rotation = Quaternion.LookRotation(faceAway ? directionToTarget : -directionToTarget);
4343
}
4444

4545
#endregion Public Methods

0 commit comments

Comments
 (0)