RigidHand (Physics)ΒΆ

The RigidHand script initializes and updates Unity RigidBody and BoxCollider objects for the palm and fingers (and, optionally, the forearm and wrist). RigidHand is used with RigidFinger to allow the prefab hands to interact with other Unity objects using collisions.

unity/../../../images/unity/Unity_RigidHand.png

The RigidHand and ThickRigidHand prefabs differ primarily in the thickness of the palm. The RigidFullHand prefab includes a RigidBody and BoxCollider for the forearm.

class RigidHand

Public Functions

override void InitHand()

Implement this function to initialise this hand after it is created.

This function is called by the HandController during the Unity Update() phase when a new hand is detected by the Leap Motion device.

override void UpdateHand()

Implement this function to update this hand once every game loop.

For HandModel instances assigned to the HandController graphics hand list, the HandController calls this function during the Unity Update() phase. For HandModel instances in the physics hand list, the HandController calls this function in the FixedUpdate() phase.