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.

Properties

Rigidbody : Rigidbody
[Get]
Signature
Rigidbody Oculus.Interaction.SnapInteractable.Rigidbody

Protected Methods

Awake ()
Signature
override void Oculus.Interaction.SnapInteractable.Awake()
Returns
override void
InteractorAdded ( interactor )
Signature
override void Oculus.Interaction.SnapInteractable.InteractorAdded(SnapInteractor interactor)
Parameters
interactor: SnapInteractor
Returns
override void
InteractorRemoved ( interactor )
Signature
override void Oculus.Interaction.SnapInteractable.InteractorRemoved(SnapInteractor interactor)
Parameters
interactor: SnapInteractor
Returns
override void
SelectingInteractorAdded ( interactor )
Signature
override void Oculus.Interaction.SnapInteractable.SelectingInteractorAdded(SnapInteractor interactor)
Parameters
interactor: SnapInteractor
Returns
override void
SelectingInteractorRemoved ( interactor )
Signature
override void Oculus.Interaction.SnapInteractable.SelectingInteractorRemoved(SnapInteractor interactor)
Parameters
interactor: SnapInteractor
Returns
override void
Start ()
Signature
override void Oculus.Interaction.SnapInteractable.Start()
Returns
override void

Methods

GenerateMovement ( from , interactor )
Generates a movement that when applied will move the interactor from a start to a target pose.
Signature
IMovement Oculus.Interaction.SnapInteractable.GenerateMovement(in Pose from, SnapInteractor interactor)
Parameters
from: in Pose  The starting position of the interactor.
interactor: SnapInteractor  The interactor to move.
Returns
IMovement
InjectAllSnapInteractable ( rigidbody )
Sets all required values for a snap interactable to a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.SnapInteractable.InjectAllSnapInteractable(Rigidbody rigidbody)
Parameters
rigidbody: Rigidbody
Returns
void
InjectOptionalMovementProvider ( provider )
Sets a movement provider on a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.SnapInteractable.InjectOptionalMovementProvider(IMovementProvider provider)
Parameters
Returns
void
InjectOptionalSnapPoseDelegate ( snapPoseDelegate )
Sets a snap pose delegate on a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.SnapInteractable.InjectOptionalSnapPoseDelegate(ISnapPoseDelegate snapPoseDelegate)
Parameters
snapPoseDelegate: ISnapPoseDelegate
Returns
void
InjectRigidbody ( rigidbody )
Sets a Rigidbody on a dynamically instantiated GameObject.
Signature
void Oculus.Interaction.SnapInteractable.InjectRigidbody(Rigidbody rigidbody)
Parameters
rigidbody: Rigidbody
Returns
void
InteractorHoverUpdated ( interactor )
Moves the tracked element using the <cref="ISnapPoseDelegate" />.
Signature
void Oculus.Interaction.SnapInteractable.InteractorHoverUpdated(SnapInteractor interactor)
Parameters
interactor: SnapInteractor
Returns
void
PoseForInteractor ( interactor , result )
Sets the pose for the interactor.
Signature
bool Oculus.Interaction.SnapInteractable.PoseForInteractor(SnapInteractor interactor, out Pose result)
Parameters
interactor: SnapInteractor  The SnapInteractor object.
result: out Pose  The resulting pose.
Returns
bool