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

Example of how to make a script to grab objects. Can change between grabbing with open/closed hand or pinch.

Inheritance diagram for ManoMotion.SimpleGrabber:

Private Types

enum  GrabType { GRAB , PINCH }
 

Private Member Functions

void Update ()
 
void UpdateGrabType ()
 
void GrabObject ()
 
void MoveObject ()
 
void DropObject ()
 
Vector3 GetCenterPoint ()
 
void OnDrawGizmos ()
 

Private Attributes

int handIndex
 
GrabType grabType
 
float castRadius = 0.05f
 
GrabType lastGrabType = (GrabType)(-1)
 
ManoGestureTrigger grabTrigger = ManoGestureTrigger.GRAB_GESTURE
 
ManoGestureTrigger releaseTrigger = ManoGestureTrigger.RELEASE_GESTURE
 
int[] fingerJoints
 
HandInfo handInfo
 
Transform grabbedObject
 
bool isGrabbing
 

Member Enumeration Documentation

◆ GrabType

Enumerator
GRAB 
PINCH 

Member Function Documentation

◆ DropObject()

void ManoMotion.SimpleGrabber.DropObject ( )
inlineprivate

◆ GetCenterPoint()

Vector3 ManoMotion.SimpleGrabber.GetCenterPoint ( )
inlineprivate

◆ GrabObject()

void ManoMotion.SimpleGrabber.GrabObject ( )
inlineprivate

◆ MoveObject()

void ManoMotion.SimpleGrabber.MoveObject ( )
inlineprivate

◆ OnDrawGizmos()

void ManoMotion.SimpleGrabber.OnDrawGizmos ( )
inlineprivate

◆ Update()

void ManoMotion.SimpleGrabber.Update ( )
inlineprivate

◆ UpdateGrabType()

void ManoMotion.SimpleGrabber.UpdateGrabType ( )
inlineprivate

Member Data Documentation

◆ castRadius

float ManoMotion.SimpleGrabber.castRadius = 0.05f
private

◆ fingerJoints

int [] ManoMotion.SimpleGrabber.fingerJoints
private

◆ grabbedObject

Transform ManoMotion.SimpleGrabber.grabbedObject
private

◆ grabTrigger

ManoGestureTrigger ManoMotion.SimpleGrabber.grabTrigger = ManoGestureTrigger.GRAB_GESTURE
private

◆ grabType

GrabType ManoMotion.SimpleGrabber.grabType
private

◆ handIndex

int ManoMotion.SimpleGrabber.handIndex
private

◆ handInfo

HandInfo ManoMotion.SimpleGrabber.handInfo
private

◆ isGrabbing

bool ManoMotion.SimpleGrabber.isGrabbing
private

◆ lastGrabType

GrabType ManoMotion.SimpleGrabber.lastGrabType = (GrabType)(-1)
private

◆ releaseTrigger

ManoGestureTrigger ManoMotion.SimpleGrabber.releaseTrigger = ManoGestureTrigger.RELEASE_GESTURE
private