Class XRBodyPositionEvaluatorExtensions
Extension methods for IXRBodyPositionEvaluator.
Inherited Members
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. |