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

GrabInteractable Class

Makes an object grabbable by controllers so long as it's within arm's reach.
Oculus::Interaction::GrabInteractable extends Oculus.Interaction.PointerInteractable< GrabInteractor, GrabInteractable >.
Oculus::Interaction::GrabInteractable extends Oculus.Interaction.IRigidbodyRef.
Oculus::Interaction::GrabInteractable extends Oculus.Interaction.ICollidersRef.

Overview

Properties

Collider[]
Rigidbody
bool
float
bool

Object Data

override void
Awake ( )
override void
Start ( )

Public Member Functions

Pose
GetGrabSourceForTarget
( Pose target )
Determines the position of the grabbed object.
void
ApplyVelocities
( Vector3 linearVelocity,
Vector3 angularVelocity )
Applies velocities to the interactable's <cref="PhysicsGrabbable" /> if it has one.
void
InjectAllGrabInteractable
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void
InjectRigidbody
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void
InjectOptionalGrabSource
( Transform grabSource )
Adds a grab source to a dynamically instantiated GameObject.
void
InjectOptionalReleaseDistance
( float releaseDistance )
Adds a release distance to a dynamically instantiated GameObject.
void
Adds a physics grabbable to a dynamically instantiated GameObject.

Details

Properties

Collider [] Oculus.Interaction.GrabInteractable.Colliders
No description available.
Rigidbody Oculus.Interaction.GrabInteractable.Rigidbody
No description available.
bool Oculus.Interaction.GrabInteractable.UseClosestPointAsGrabSource
No description available.
float Oculus.Interaction.GrabInteractable.ReleaseDistance
No description available.
bool Oculus.Interaction.GrabInteractable.ResetGrabOnGrabsUpdated
No description available.

Object Data

override void Oculus.Interaction.GrabInteractable.Awake ( )
No description available.
override void Oculus.Interaction.GrabInteractable.Start ( )
No description available.

Member Functions

Pose Oculus.Interaction.GrabInteractable.GetGrabSourceForTarget
( Pose target )
Determines the position of the grabbed object.
This is used as the location from which the object will be grabbed.
Parameters
target
The Transform of the interactor.
void Oculus.Interaction.GrabInteractable.ApplyVelocities
( Vector3 linearVelocity,
Vector3 angularVelocity )
Applies velocities to the interactable's <cref="PhysicsGrabbable" /> if it has one.
void Oculus.Interaction.GrabInteractable.InjectAllGrabInteractable
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractable.InjectRigidbody
( Rigidbody rigidbody )
Adds a Rigidbody to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractable.InjectOptionalGrabSource
( Transform grabSource )
Adds a grab source to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractable.InjectOptionalReleaseDistance
( float releaseDistance )
Adds a release distance to a dynamically instantiated GameObject.
void Oculus.Interaction.GrabInteractable.InjectOptionalPhysicsGrabbable
( PhysicsGrabbable physicsGrabbable )
Adds a physics grabbable to a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon