docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRBodyPositionEvaluatorExtensions

    Extension methods for IXRBodyPositionEvaluator.

    Inheritance
    object
    XRBodyPositionEvaluatorExtensions
    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 static class XRBodyPositionEvaluatorExtensions

    Methods

    GetBodyGroundWorldPosition(IXRBodyPositionEvaluator, XROrigin)

    Gets the world position of where the user's body is grounded (e.g. their feet).

    Declaration
    public static Vector3 GetBodyGroundWorldPosition(this IXRBodyPositionEvaluator evaluator, XROrigin xrOrigin)
    Parameters
    Type Name Description
    IXRBodyPositionEvaluator evaluator

    The evaluator that determines the body position.

    XROrigin xrOrigin

    The XR Origin whose body position to get.

    Returns
    Type Description
    Vector3

    Returns the world position of where the user's body is grounded.

    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)