Enum XRBaseInteractable.MovementType
Type of movement for an interactable
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public enum MovementType
Fields
Name | Description |
---|---|
Instantaneous | In Instantaneous Mode the interactable's transform is updated such that the interactable attach point will match the interactor's attach point. as this is updating the transform directly, any rigid body attached to the GameObject that the interactable component is on will be disabled while being interacted with so that any motion will not "judder" due to the rigid body interfering with motion. |
Kinematic | In Kinematic mode the Rigid Body associated with the interactable will be moved such that the interactable attach point will match the interactor attach point as this is updating the RigidBody, this will appear a frame behind the visual representation of the Interactor / Controller |
VelocityTracking | In VelocityTracking mode, the Rigid Body associated with the will have velocity and angular velocity added to it such that the interactable attach point will follow the interactor attach point as this is applying forces to the RigidBody, this will appear to be a slight distance behind the visual representation of the Interactor / Controller |