API reference

GrabInteractable Class

Makes an object grabbable by controllers so long as it's within arm's reach.

Properties

Collider[] Colliders[Get]
Rigidbody Rigidbody[Get]
bool UseClosestPointAsGrabSource[Get]
float ReleaseDistance[Get]
bool ResetGrabOnGrabsUpdated[Get]

Protected Functions

override void Awake ( )
override void Start ( )

Member Functions

Pose 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 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 InjectOptionalPhysicsGrabbable
( PhysicsGrabbable physicsGrabbable )
Adds a physics grabbable to a dynamically instantiated GameObject.