Class XRBodyScale
Transformation that sets the uniform local scale of the target's originTransform to the specified value, and then repositions the Origin such that the world position of where the user's body is grounded remains the same. The body ground position is determined by the target's bodyPositionEvaluator.
Implements
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public class XRBodyScale : IXRBodyTransformation
Properties
uniformScale
Uniform value to scale the originTransform to. The local scale of the Origin will be set to one multiplied by this value.
Declaration
public float uniformScale { get; set; }
Property Value
Type | Description |
---|---|
float |
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. |