docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRBodyPositionEvaluator

    Interface for an object that determines the position of the user's body for a given Unity.XR.CoreUtils.XROrigin. This is used by implementations of IXRBodyTransformation to transform the XR Origin using the user's body, rather than the tracking origin itself, as the frame of reference.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IXRBodyPositionEvaluator

    Methods

    GetBodyGroundLocalPosition(XROrigin)

    Gets the position of where the user's body is grounded (e.g. their feet), in the local space of the Unity.XR.CoreUtils.XROrigin.Origin.

    Declaration
    Vector3 GetBodyGroundLocalPosition(XROrigin xrOrigin)
    Parameters
    Type Name Description
    XROrigin xrOrigin

    The XR Origin whose body position to get.

    Returns
    Type Description
    Vector3

    Returns the position of where the user's body is grounded, in the local space of the Unity.XR.CoreUtils.XROrigin.Origin.

    Extension Methods

    XRBodyPositionEvaluatorExtensions.GetBodyGroundWorldPosition(IXRBodyPositionEvaluator, XROrigin)
    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)