API reference

GrabInteractor Class

Enables grab for objects within arm's reach that have a <cref="GrabInteractable" />.
It works with both controllers and hands, but for hands it's better to use HandGrabInteractor.

Properties

Rigidbody Rigidbody[Get]
IThrowVelocityCalculator VelocityCalculator[Get]

Protected Functions

override void Awake ( )
override void Start ( )
override void DoPreprocess ( )
override GrabInteractable ComputeCandidate ( )
override void InteractableSelected
( GrabInteractable interactable )
override void InteractableUnselected
( GrabInteractable interactable )
virtual override void HandlePointerEventRaised
( PointerEvent evt )
virtual override Pose ComputePointerPose ( )
override void DoSelectUpdate ( )
override bool ComputeShouldUnselect ( )

Member Functions

void ForceSelect
( GrabInteractable interactable )
Forces the controller to select a certain interactable even if it's not the closest.
void ForceRelease ( )
Forces the controller to unselect the currently selected interactable.
override void Unselect ( )
void InjectAllGrabInteractor
( ISelector selector,
Rigidbody rigidbody )
Adds a <cref="ISelector"/> and Rigidbody to a dynamically instantiated GameObject.
void InjectSelector
( ISelector selector )
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 InjectOptionalVelocityCalculator
( IThrowVelocityCalculator velocityCalculator )
Adds a velocity calculator to a dynamically instantiated GameObject.