Class XROriginUpAlignment
Transformation that rotates the target's originTransform such that its up vector matches the specified vector. Note that this does not maintain the world position of the user's body.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public class XROriginUpAlignment : IXRBodyTransformation
Properties
targetUp
Vector that the originTransform's up vector should match.
Declaration
public Vector3 targetUp { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
Apply(XRMovableBody)
Performs the transformation on the given body.
Declaration
public virtual void Apply(XRMovableBody body)
Parameters
Type | Name | Description |
---|---|---|
XRMovableBody | body | The body whose originTransform to transform. |