hand-tracking-grab-controls
Note: This documentation is for the old 1.5.0 version of A-Frame. Check out the documentation for the current 1.6.0 version
Grab any entity with hand tracking using the pinch gesture.
Example
<a-entity id="leftHand" hand-tracking-grab-controls="hand: left;"></a-entity> |
The grabbable
component makes any entity hand grababble.
<a-box grabbable></a-box> |
For debugging purposes you can make the colliders visible as below:
<a-scene obb-collider="showColliders: false"></a-scene> |
Properties
Property | Description | Default Value |
---|---|---|
hand | The hand that will be tracked (i.e., right, left). | left |
handColor | The color of the hand model. | white |
hoverColor | Hand color when hand intersects a grabbable entity bounding box. | #538df1 |
hoverEnabled | If the hand model changes color when intersecting a grabbable entity. | false |