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.
Oculus::Interaction::SnapInteractable extends Oculus.Interaction.Interactable< SnapInteractor, SnapInteractable >.
Oculus::Interaction::SnapInteractable extends Oculus.Interaction.IRigidbodyRef.

Overview

Object Data

override void
Awake ( )
override void
Start ( )
override void
override void
override void
override void

Public Member Functions

void
Moves the tracked element using the <cref="ISnapPoseDelegate" />.
bool
PoseForInteractor
( SnapInteractor interactor,
out Pose result )
Sets the pose for the interactor.
GenerateMovement
( in Pose from,
SnapInteractor interactor )
Generates a movement that when applied will move the interactor from a start to a target pose.
void
InjectAllSnapInteractable
( Rigidbody rigidbody )
Sets all required values for a snap interactable to a dynamically instantiated GameObject.
void
InjectRigidbody
( Rigidbody rigidbody )
Sets a Rigidbody on a dynamically instantiated GameObject.
void
Sets a movement provider on a dynamically instantiated GameObject.
void
Sets a snap pose delegate on a dynamically instantiated GameObject.

Details

Properties

Rigidbody Oculus.Interaction.SnapInteractable.Rigidbody
No description available.
ISnapPoseDelegate Oculus.Interaction.SnapInteractable.SnapPoseDelegate
No description available.
IMovementProvider Oculus.Interaction.SnapInteractable.MovementProvider
No description available.

Object Data

override void Oculus.Interaction.SnapInteractable.Awake ( )
No description available.
override void Oculus.Interaction.SnapInteractable.Start ( )
No description available.
override void Oculus.Interaction.SnapInteractable.InteractorAdded
( SnapInteractor interactor )
No description available.
override void Oculus.Interaction.SnapInteractable.InteractorRemoved
( SnapInteractor interactor )
No description available.
override void Oculus.Interaction.SnapInteractable.SelectingInteractorAdded
( SnapInteractor interactor )
No description available.
override void Oculus.Interaction.SnapInteractable.SelectingInteractorRemoved
( SnapInteractor interactor )
No description available.

Member Functions

void Oculus.Interaction.SnapInteractable.InteractorHoverUpdated
( SnapInteractor interactor )
Moves the tracked element using the <cref="ISnapPoseDelegate" />.
bool Oculus.Interaction.SnapInteractable.PoseForInteractor
( SnapInteractor interactor,
out Pose result )
Sets the pose for the interactor.
Parameters
interactor
The SnapInteractor object.
result
The resulting pose.
IMovement Oculus.Interaction.SnapInteractable.GenerateMovement
( in Pose from,
SnapInteractor interactor )
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.
void Oculus.Interaction.SnapInteractable.InjectAllSnapInteractable
( Rigidbody rigidbody )
Sets all required values for a snap interactable to a dynamically instantiated GameObject.
void Oculus.Interaction.SnapInteractable.InjectRigidbody
( Rigidbody rigidbody )
Sets a Rigidbody on a dynamically instantiated GameObject.
void Oculus.Interaction.SnapInteractable.InjectOptionalMovementProvider
( IMovementProvider provider )
Sets a movement provider on a dynamically instantiated GameObject.
void Oculus.Interaction.SnapInteractable.InjectOptionalSnapPoseDelegate
( ISnapPoseDelegate snapPoseDelegate )
Sets a snap pose delegate on a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon