Class Leap::PhysicalHands::ContactHand

class Leap.PhysicalHands.ContactHand : public MonoBehaviour

Subclassed by Leap.PhysicalHands.HardContactHand, Leap.PhysicalHands.NoContactHand, Leap.PhysicalHands.SoftContactHand

Public Functions

ContactBone GetBone (int fingerIndex, int jointIndex)

Helper function to obtain a specific bone of the hand.

Param fingerIndex

0-4 starting from the thumb

Param jointIndex

0-2 starting from the proximal

Return

void IgnoreCollision (Rigidbody rigid, Collider[] colliders, float timeout = 0, float radius = 0)

Disables all collisions between a rigidbody, its colliders and the contact hand. Will automatically handle all colliders on the rigidbody. Timeout lets you specify a minimum time to ignore collisions for.

Properties

Hand DataHand { get; set; }

The raw data for this hand before it is modified to account for Physical Hands

bool Tracked { get; set; }

Is the hand tracked from a visual sense?

bool Ghosted { get; set; }

Is the hand able to interact with the physic simulation, or is it in a reset state?