We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa0e3fa commit 7f480daCopy full SHA for 7f480da
Assets/MixedRealityToolkit.SDK/Features/Input/Handlers/Constraints/FaceUserConstraint.cs
@@ -39,7 +39,7 @@ public bool FaceAway
39
public override void ApplyConstraint(ref MixedRealityTransform transform)
40
{
41
Vector3 directionToTarget = transform.Position - CameraCache.Main.transform.position;
42
- transform.Rotation = Quaternion.LookRotation(faceAway ? -directionToTarget : directionToTarget);
+ transform.Rotation = Quaternion.LookRotation(faceAway ? directionToTarget : -directionToTarget);
43
}
44
45
#endregion Public Methods
0 commit comments