Back to Aframe

hand-controls

docs/components/hand-controls.md

1.7.12.9 KB
Original Source

The hand-controls component provides tracked hands (using a prescribed model) with animated gestures. hand-controls wraps the vive-controls and meta-touch-controls which in turn wrap the tracked-controls component. By specifying just hand-controls, we have something that works well with both Vive and Rift. The component gives extra events and handles hand animations and poses.

Example

html
<a-entity id="leftHand" hand-controls="hand: left; handModelStyle: lowPoly; color: #ffcccc"></a-entity>
<a-entity id="rightHand" hand-controls="hand: right; handModelStyle: lowPoly; color: #ffcccc"></a-entity>

Properties

PropertyDescriptionDefault Value
colorColor of hand material.white
handAssociated controller. Can be left or right.left
handModelStyleStyle of the hand 3D model loaded. Can be lowPoly, highPoly or toon.lowPoly

Events

Event NameDescription
gripdownThe hand is closed into a fist without thumb raised.
gripupThe hand is no longer closed into a fist without thumb raised.
pointupThe hand is touching or pressing the trigger only.
pointdownThe hand is no longer touching or pressing the trigger only.
thumbupThe hand is closed into a fist with thumb raised.
thumbdownThe hand is no longer closed into a fist with thumb raised.
pointingstartThe hand is pointing with index finger without thumb raised.
pointingendThe hand is no longer pointing without thumb raised.
pistolstartThe hand is pointing with index finger and thumb raised.
pistolendThe hand is no longer pointing with thumb raised.

Assets