Class XROriginMovement
Transformation that translates the target's origin
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 constrained
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 Move
motion
Amount of translation to apply to the origin
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 |
---|---|---|
XRMovable |
body | The body whose origin |