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

GrabInteractor Class

Enables grab for objects within arm's reach that have a <cref="GrabInteractable" />.
Oculus::Interaction::GrabInteractor extends Oculus.Interaction.PointerInteractor< GrabInteractor, GrabInteractable >.
Oculus::Interaction::GrabInteractor extends Oculus.Interaction.IRigidbodyRef.

Overview

Object Data

override void
Awake ( )
override void
Start ( )
override void
override void
override void
override void
override Pose
override void
override bool

Public Member Functions

void
ForceSelect
( GrabInteractable interactable )
Forces the controller to select a certain interactable even if it's not the closest.
void
Forces the controller to unselect the currently selected interactable.
override void
void
InjectAllGrabInteractor
( ISelector selector,
Rigidbody rigidbody )
Adds a <cref="ISelector"/> and Rigidbody to a dynamically instantiated GameObject.
void
Adds an <cref="ISelector"/> to a dynamically instantiated GameObject.
void
InjectRigidbody
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void
InjectOptionalGrabCenter
( Transform grabCenter )
Adds a grab center to a dynamically instantiated GameObject.
void
InjectOptionalGrabTarget
( Transform grabTarget )
Adds a grab target to a dynamically instantiated GameObject.
void
Adds a velocity calculator to a dynamically instantiated GameObject.

Details

Detailed Description

It works with both controllers and hands, but for hands it's better to use HandGrabInteractor.

Properties

Rigidbody Oculus.Interaction.GrabInteractor.Rigidbody
No description available.
IThrowVelocityCalculator Oculus.Interaction.GrabInteractor.VelocityCalculator
No description available.

Object Data

override void Oculus.Interaction.GrabInteractor.Awake ( )
No description available.
override void Oculus.Interaction.GrabInteractor.Start ( )
No description available.
override void Oculus.Interaction.GrabInteractor.DoPreprocess ( )
No description available.
override GrabInteractable Oculus.Interaction.GrabInteractor.ComputeCandidate ( )
No description available.
override void Oculus.Interaction.GrabInteractor.InteractableSelected
( GrabInteractable interactable )
No description available.
override void Oculus.Interaction.GrabInteractor.InteractableUnselected
( GrabInteractable interactable )
No description available.
override void Oculus.Interaction.GrabInteractor.HandlePointerEventRaised
( PointerEvent evt )
No description available.
override Pose Oculus.Interaction.GrabInteractor.ComputePointerPose ( )
No description available.
override void Oculus.Interaction.GrabInteractor.DoSelectUpdate ( )
No description available.
override bool Oculus.Interaction.GrabInteractor.ComputeShouldUnselect ( )
No description available.

Member Functions

void Oculus.Interaction.GrabInteractor.ForceSelect
( GrabInteractable interactable )
Forces the controller to select a certain interactable even if it's not the closest.
void Oculus.Interaction.GrabInteractor.ForceRelease ( )
Forces the controller to unselect the currently selected interactable.
override void Oculus.Interaction.GrabInteractor.Unselect ( )
No description available.
void Oculus.Interaction.GrabInteractor.InjectAllGrabInteractor
( ISelector selector,
Rigidbody rigidbody )
Adds a <cref="ISelector"/> and Rigidbody to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractor.InjectSelector
( ISelector selector )
Adds an <cref="ISelector"/> to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractor.InjectRigidbody
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractor.InjectOptionalGrabCenter
( Transform grabCenter )
Adds a grab center to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractor.InjectOptionalGrabTarget
( Transform grabTarget )
Adds a grab target to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractor.InjectOptionalVelocityCalculator
( IThrowVelocityCalculator velocityCalculator )
Adds a velocity calculator to a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon