API reference
API reference
Select your platform
No SDKs available
No versions available

IMovementProvider Interface

Creates instances of IMovement through the CreateMovement method.
This interface acts as a factory, and allows for the dynamic creation of custom movement behaviors for InteractablesIInteractable when selected by an InteractorIInteractor.

Methods

CreateMovement ()
Creates and returns an instance of IMovement.
The instance is used to generate movement when an Interactable is Selected Interactor.InteractableSelected
For an example implementation, see ObjectPullProvider.CreateMovement For example usage, see RayInteractable.GenerateMovement
Signature
IMovement Oculus.Interaction.IMovementProvider.CreateMovement()
Returns
IMovement  An instance of IMovement configured for the selected Interactable.