C# Class LeapUnityHandController, lightitup

This class manipulates the hand representation in the unity scene based on the input from the leap device. Fingers and Palm objects are moved around between higher level 'hand' objects that mainly serve to organize. Be aware that when fingers are lost, unity does not dispatch OnTriggerExit events.
Inheritance: MonoBehaviour
Show file Open project: brennon/lightitup Class Usage Examples

Public Properties

Property Type Description
m_DisplayHands bool
m_fingers GameObject[]
m_hands GameObject[]
m_materials Material[]
m_palms GameObject[]
point Pointable

Public Methods

Method Description
GetSecondFinger ( GameObject firstFing ) : GameObject

Private Methods

Method Description
Awake ( ) : void
EvaluateNewFinger ( Pointable finger ) : void
GetAllowableFingers ( ) : int
OnHandFound ( Hand h ) : void
OnHandLost ( int lostID ) : void
OnHandUpdated ( Hand h ) : void
OnPointableFound ( Pointable p ) : void
OnPointableLost ( int lostID ) : void
OnPointableUpdated ( Pointable p ) : void
SetCollidable ( GameObject obj, bool collidable ) : void
SetInteractionMode ( ) : void
SetVisible ( GameObject obj, bool visible ) : void
Start ( ) : void
updatePalm ( Leap leapHand, GameObject palmObject ) : void
updateParent ( GameObject child, int handId ) : void
updatePointable ( Leap pointable, GameObject fingerObject ) : void

Method Details

GetSecondFinger() public method

public GetSecondFinger ( GameObject firstFing ) : GameObject
firstFing GameObject
return GameObject

Property Details

m_DisplayHands public property

public bool m_DisplayHands
return bool

m_fingers public property

public GameObject[] m_fingers
return GameObject[]

m_hands public property

public GameObject[] m_hands
return GameObject[]

m_materials public property

public Material[] m_materials
return Material[]

m_palms public property

public GameObject[] m_palms
return GameObject[]

point public static property

public static Pointable point
return Pointable