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" />.
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

Forces the controller to select a certain interactable even if it's not the closest.
Forces the controller to unselect the currently selected interactable.
override void Unselect ( )
Adds a <cref="ISelector"/> and Rigidbody to a dynamically instantiated GameObject.
Adds an <cref="ISelector"/> to a dynamically instantiated GameObject.
Adds a Rigidbody to a dynamically instantiated GameObject.
Adds a grab center to a dynamically instantiated GameObject.
Adds a grab target to a dynamically instantiated GameObject.
Adds a velocity calculator to a dynamically instantiated GameObject.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon