Enum XRBaseInteractable.MovementType
Options for how movement of an Interactable is performed.
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public enum MovementType : int
Remarks
Each method of movement has tradeoffs, and different values may be more appropriate for each type of Interactable object in a project.
Fields
Name | Description | Value |
---|---|---|
VelocityTracking | Move the Interactable object by setting the velocity and angular velocity of the Rigidbody. Use this if you don't want the object to be able to move through other Colliders without a Rigidbody as it follows the Interactor, however with the tradeoff that it can appear to lag behind and not move as smoothly as Instantaneous. |
0 |
Kinematic | Move the Interactable object by moving the kinematic Rigidbody towards the target position and orientation. Use this if you want to keep the visual representation synchronized to match its Physics state, and if you want to allow the object to be able to move through other Colliders without a Rigidbody as it follows the Interactor. |
1 |
Instantaneous | Move the Interactable object by setting the position and rotation of the Transform every frame. Use this if you want the visual representation to be updated each frame, minimizing latency, however with the tradeoff that it will be able to move through other Colliders without a Rigidbody as it follows the Interactor. |
2 |