API reference

MoveFromTargetProvider Class

Extends MonoBehaviour
Implements IMovementProvider
Moves the selected interactable 1 to 1 with the interactor.
For example, if your interactor moves up and to the right, the selected interactable will also move up and to the right.

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 CreateMovement()
Returns
IMovement  An instance of IMovement configured for the selected Interactable.