Interface IConstrainedXRBodyManipulator
Interface for an object that can perform movement of an XRMovable
Namespace: UnityEngine .XR.Interaction.Toolkit.Locomotion
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public interface IConstrainedXRBodyManipulator
Properties
isGrounded
Whether the linked
Declaration
bool isGrounded { get; }
Property Value
Type | Description |
---|---|
bool |
See Also
lastCollisionFlags
Flags indicating the direction of the collision from the most recent call to Move
Declaration
CollisionFlags lastCollisionFlags { get; }
Property Value
Type | Description |
---|---|
Collision |
See Also
linkedBody
The body whose origin
Declaration
XRMovableBody linkedBody { get; }
Property Value
Type | Description |
---|---|
XRMovable |
See Also
Methods
MoveBody(Vector3)
Applies the given motion to linked
Declaration
CollisionFlags MoveBody(Vector3 motion)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | motion | Amount of translation to apply. |
Returns
Type | Description |
---|---|
Collision |
Returns flags that indicate the direction of the collision, if there was one. |
See Also
OnLinkedToBody(XRMovableBody)
Called after the given body links this manipulator to it. The implementation should ensure that
linkedbody
after this method is called.
Declaration
void OnLinkedToBody(XRMovableBody body)
Parameters
Type | Name | Description |
---|---|---|
XRMovable |
body | The body linked with this manipulator. |
See Also
OnUnlinkedFromBody()
Called when a body unlinks this manipulator from it. The implementation should ensure that
linked
Declaration
void OnUnlinkedFromBody()