Class Leap::PhysicalHands::IgnorePhysicalHands

class Leap.PhysicalHands.IgnorePhysicalHands : public MonoBehaviour

Public Functions

void Init (bool ignoreGrabbing = true, bool ignoreCollisions = true, bool ignoreChildCollisions = true, ChiralitySelection handToIgnoreGrabs = ChiralitySelection.BOTH, ChiralitySelection handToIgnoreCollisions = ChiralitySelection.BOTH)

Initialize this component with alternative values to the defaults

Call Init on this component immediately after adding it to a gameobject if you wish to override the default values

Note: Consider adding this component to the GameObject before runtime begins and simply toggle the variables at runtime instead

bool IsGrabbingIgnoredForHand (ContactHand hand)

Checks whether this hand will be ignored via this component when considering grabbing

Param hand

Return

true if chirality is correct or Hand to ignore is set to BOTH

bool IsCollisionIgnoredForHand (ContactHand hand)

Checks whether this hand will be ignored via this component when considering collisions

Param hand

Return

true if chirality is correct or Hand to ignore is set to BOTH

Properties

bool DisableAllGrabbing { get; set; }

Prevents the object from being grabbed by chosen Contact Hands.

Note: This only applies if IgnorePhysicalHands is applied to a GameObject with a Rigidbody component.

bool DisableAllHandCollisions { get; set; }

Prevents the object from being collided with Contact Hands

bool DisableCollisionOnChildObjects { get; set; }

Prevents child objects from being collided with Contact Hands