docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRBodyGroundPosition

    Transformation that moves the target's originTransform such that the world position of where the user's body is grounded matches the specified position. The body ground position is determined by the target's bodyPositionEvaluator.

    Inheritance
    object
    XRBodyGroundPosition
    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 XRBodyGroundPosition : IXRBodyTransformation

    Properties

    targetPosition

    World position that the user's body ground position should be at.

    Declaration
    public Vector3 targetPosition { 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)