docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XROriginMovement

    Transformation that translates the target's originTransform by the specified amount.

    Inheritance
    object
    XROriginMovement
    Implements
    IXRBodyTransformation
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Implements

    IXRBodyTransformation
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)