Class XROriginMovement
Transformation that translates the target's originTransform by the specified amount.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public class XROriginMovement : IXRBodyTransformation
Properties
forceUnconstrained
Whether to ignore constrainedManipulator even if it is set. Defaults to false to use the movement constraints if configured to.
Declaration
public bool forceUnconstrained { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Setting this to true will mean the body will always be moved using the Transform component directly. Setting this to false will use MoveBody(Vector3) to move the Origin if the constrainedManipulator is not null, and otherwise use the Transform component.
motion
Amount of translation to apply to the originTransform.
Declaration
public Vector3 motion { 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. |