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

SnapInteractable Class

SnapInteractables provide Pose targets for SnapInteractors to translate and rotate towards.

Fields

Rigidbody Rigidbody[Get]

Properties

ISnapPoseDelegate SnapPoseDelegate[Get]
IMovementProvider MovementProvider[Get]

Protected Functions

virtual override void Awake ( )
virtual override void Start ( )
override void InteractorAdded
( SnapInteractor interactor )
override void InteractorRemoved
( SnapInteractor interactor )
override void SelectingInteractorAdded
( SnapInteractor interactor )
override void SelectingInteractorRemoved
( SnapInteractor interactor )

Member Functions

Moves the tracked element using the <cref="ISnapPoseDelegate" />.
Sets the pose for the interactor.
Parameters
interactor
The SnapInteractor object.
result
The resulting pose.
Generates a movement that when applied will move the interactor from a start to a target pose.
Parameters
from
The starting position of the interactor.
interactor
The interactor to move.
Sets all required values for a snap interactable to a dynamically instantiated GameObject.
Sets a Rigidbody on a dynamically instantiated GameObject.
Sets a movement provider on a dynamically instantiated GameObject.
Sets a snap pose delegate on a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon