UxrLookAtLocalAvatar.MakeLookAt Method
Makes an object look at the local avatar.
Namespace: UltimateXR.Animation.Transforms
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static void MakeLookAt(
GameObject gameObject,
bool allowRotateAroundVerticalAxis,
bool allowRotateAroundHorizontalAxis,
bool invertedForwardAxis
)
Parameters
- gameObject
- Type: GameObject
The object that will look at the local avatar - allowRotateAroundVerticalAxis
- Type: System.Boolean
Should the lookAt alter the rotation around the vertical axis? - allowRotateAroundHorizontalAxis
- Type: System.Boolean
Should the lookAt alter the rotation around the horizontal axis? - invertedForwardAxis
- Type: System.Boolean
If true, the target’s forward axis will try to point at the opposite direction where the avatar is. By default this is false, meaning the forward vector will try to point at the avatar
See Also
Reference
UxrLookAtLocalAvatar Class
UltimateXR.Animation.Transforms Namespace