ManoMotion Unity SDK 2.0
SDK documentation
Loading...
Searching...
No Matches
ManoMotion.Demos.Grabber Class Reference

Manages interactions with grabbable objects.

Inheritance diagram for ManoMotion.Demos.Grabber:

Public Member Functions

void Grab (Grabbable grabbable, ManoGestureTrigger gestureTrigger)
 

Properties

Vector3 GrabPosition [get]
 
Vector3 PinchPosition [get]
 

Private Member Functions

void LateUpdate ()
 
bool TryGetHandInfo (out HandInfo handInfo)
 Returns true and gives back the hand info of the left/right hand specified.
 
Vector3 GetWorldPosition (int jointIndex)
 
bool TryHover (Vector3 position, out Grabbable grabbable)
 
bool TryGrab (Vector3 position, ManoGestureTrigger trigger)
 
bool TryClickOrPick (Vector3 position, ManoGestureTrigger trigger)
 
void UpdateGrabbed (Vector3 position, Quaternion rotation)
 Moves the grabbed Rigidbody to the hand with the same distance as when it was grabbed.
 
void HoverStart (Grabbable grabbable)
 
void HoverStop ()
 
void Release ()
 
void Click (Grabbable grabbable)
 
void Pick (Grabbable grabbable, Vector3 position)
 
void PickUpdate (HandInfo handInfo, Vector3 position, ManoGestureTrigger trigger)
 
void DragStart (Grabbable grabbable)
 Called when a Grabbable has been picked and then hand has moved a certain distance.
 

Private Attributes

int handIndex
 
ManoGestureTrigger grabTriggerGesture = ManoGestureTrigger.GRAB_GESTURE
 
ManoGestureTrigger releaseGestureTrigger = ManoGestureTrigger.RELEASE_GESTURE
 
ManoGestureTrigger clickGestureTrigger = ManoGestureTrigger.CLICK
 
ManoGestureTrigger pickGestureTrigger = ManoGestureTrigger.PICK
 
ManoGestureTrigger dropGestureTrigger = ManoGestureTrigger.DROP
 
float castRadius = 0.1f
 
LayerMask grabLayers
 
float pickDragStartDistance
 
Grabbable hoveredGrabbable
 
Grabbable grabbedGrabbable
 
Grabbable pickedGrabbable
 
bool pickStarted
 
Vector3 pickStartedPosition
 
ManoGestureTrigger grabType
 

Static Private Attributes

const int GrabJointIndex = 9
 

Member Function Documentation

◆ Click()

void ManoMotion.Demos.Grabber.Click ( Grabbable grabbable)
inlineprivate

◆ DragStart()

void ManoMotion.Demos.Grabber.DragStart ( Grabbable grabbable)
inlineprivate

◆ GetWorldPosition()

Vector3 ManoMotion.Demos.Grabber.GetWorldPosition ( int jointIndex)
inlineprivate

◆ Grab()

void ManoMotion.Demos.Grabber.Grab ( Grabbable grabbable,
ManoGestureTrigger gestureTrigger )
inline

◆ HoverStart()

void ManoMotion.Demos.Grabber.HoverStart ( Grabbable grabbable)
inlineprivate

◆ HoverStop()

void ManoMotion.Demos.Grabber.HoverStop ( )
inlineprivate

◆ LateUpdate()

void ManoMotion.Demos.Grabber.LateUpdate ( )
inlineprivate

◆ Pick()

void ManoMotion.Demos.Grabber.Pick ( Grabbable grabbable,
Vector3 position )
inlineprivate

◆ PickUpdate()

void ManoMotion.Demos.Grabber.PickUpdate ( HandInfo handInfo,
Vector3 position,
ManoGestureTrigger trigger )
inlineprivate

◆ Release()

void ManoMotion.Demos.Grabber.Release ( )
inlineprivate

◆ TryClickOrPick()

bool ManoMotion.Demos.Grabber.TryClickOrPick ( Vector3 position,
ManoGestureTrigger trigger )
inlineprivate

◆ TryGetHandInfo()

bool ManoMotion.Demos.Grabber.TryGetHandInfo ( out HandInfo handInfo)
inlineprivate

◆ TryGrab()

bool ManoMotion.Demos.Grabber.TryGrab ( Vector3 position,
ManoGestureTrigger trigger )
inlineprivate

◆ TryHover()

bool ManoMotion.Demos.Grabber.TryHover ( Vector3 position,
out Grabbable grabbable )
inlineprivate

◆ UpdateGrabbed()

void ManoMotion.Demos.Grabber.UpdateGrabbed ( Vector3 position,
Quaternion rotation )
inlineprivate

Member Data Documentation

◆ castRadius

float ManoMotion.Demos.Grabber.castRadius = 0.1f
private

◆ clickGestureTrigger

ManoGestureTrigger ManoMotion.Demos.Grabber.clickGestureTrigger = ManoGestureTrigger.CLICK
private

◆ dropGestureTrigger

ManoGestureTrigger ManoMotion.Demos.Grabber.dropGestureTrigger = ManoGestureTrigger.DROP
private

◆ grabbedGrabbable

Grabbable ManoMotion.Demos.Grabber.grabbedGrabbable
private

◆ GrabJointIndex

const int ManoMotion.Demos.Grabber.GrabJointIndex = 9
staticprivate

◆ grabLayers

LayerMask ManoMotion.Demos.Grabber.grabLayers
private

◆ grabTriggerGesture

ManoGestureTrigger ManoMotion.Demos.Grabber.grabTriggerGesture = ManoGestureTrigger.GRAB_GESTURE
private

◆ grabType

ManoGestureTrigger ManoMotion.Demos.Grabber.grabType
private

◆ handIndex

int ManoMotion.Demos.Grabber.handIndex
private

◆ hoveredGrabbable

Grabbable ManoMotion.Demos.Grabber.hoveredGrabbable
private

◆ pickDragStartDistance

float ManoMotion.Demos.Grabber.pickDragStartDistance
private

◆ pickedGrabbable

Grabbable ManoMotion.Demos.Grabber.pickedGrabbable
private

◆ pickGestureTrigger

ManoGestureTrigger ManoMotion.Demos.Grabber.pickGestureTrigger = ManoGestureTrigger.PICK
private

◆ pickStarted

bool ManoMotion.Demos.Grabber.pickStarted
private

◆ pickStartedPosition

Vector3 ManoMotion.Demos.Grabber.pickStartedPosition
private

◆ releaseGestureTrigger

ManoGestureTrigger ManoMotion.Demos.Grabber.releaseGestureTrigger = ManoGestureTrigger.RELEASE_GESTURE
private

Property Documentation

◆ GrabPosition

Vector3 ManoMotion.Demos.Grabber.GrabPosition
getprivate

◆ PinchPosition

Vector3 ManoMotion.Demos.Grabber.PinchPosition
getprivate