Hand Tracking

Follows your hands and reads gestures like a fist, a pinch, a thumbs up or a peace sign. Ask for something your hand controls, for example drawing with a pinch.

Camera, Audio & Sensors

Camera feed, hand and face tracking, touch, tilt, haptics, and sound.

Made with this block

Inputs

occludeHandsboolean

Whether hands occlude 3d objects or let everything render over them.

leftHandDefaultJointstring

The default joint that objects are attached to, with the options being: palm,wrist,thumb-0,thumb-1,thumb-2,thumb-3,index-0,index-1,index-2,index-3,mid-0,mid-1,mid-2,mid-3,ring-0,ring-1,ring-2,ring-3,pinky-0,pinky-1,pinky-2,pinky-3,wrist_to_thumb,wrist_to_index,wrist_to_mid,wrist_to_ring,wrist_to_pinky. Note for numbered fingers: 0 = closer to palm and 3 = finger tip.

rightHandDefaultJointstring

The default joint that objects are attached to, with the options being: palm,wrist,thumb-0,thumb-1,thumb-2,thumb-3,index-0,index-1,index-2,index-3,mid-0,mid-1,mid-2,mid-3,ring-0,ring-1,ring-2,ring-3,pinky-0,pinky-1,pinky-2,pinky-3,wrist_to_thumb,wrist_to_index,wrist_to_mid,wrist_to_ring,wrist_to_pinky. Note for numbered fingers: 0 = closer to palm and 3 = finger tip.

Events

onLeftTracking

Called each frame when leftHand is tracking, providing all the hand tracking data in a data object. Example usage: handTrackingComponent.onLeftTracking.add((data)=>{ print(data.joints.thumb1.position2D); // gets 2d screenspace position of thumb1 joint. print(data.position3D); // gets 3d position of the general hand. print(data.rotation3D); // gets z rotation of the general hand, useful for 3d outputs. print(data.rotation2D); // gets z rotation of the general hand, useful for 2d outputs. });

onRightTracking

Called each frame when rightHand is tracking, providing all the hand tracking data in a data object. Example usage: handTrackingComponent.onRightTracking.add((data)=>{ print(data.joints.thumb1.position2D); // gets 2d screenspace position of thumb1 joint. print(data.position3D); // gets 3d position of the general hand. print(data.rotation3D); // gets z rotation of the general hand, useful for 3d outputs. print(data.rotation2D); // gets z rotation of the general hand, useful for 2d outputs. });

onLeftHandShown

triggered when left hand shown

onRightHandShown

triggered when right hand is visible.

onLeftHandHidden

Triggered when left hand is hidden

onRightHandHidden

triggered when right hand is hidden.

onLeftChefsKiss

called if left hand does chefs kiss gesture.

onRightChefsKiss

called if right hand does chefs kiss gesture.

onLeftThumbUp

called if left hand does thumb up gesture.

onRightThumbUp

called if right hand does thumb up gesture.

onLeftPoint

called if left hand does point gesture.

onRightPoint

called if right hand does point gesture.

onLeftPeace

called if left hand does peace sign

onRightPeace

called if right hand does peace sign

onLeftCount1

Called when left hand counts 1

onRightCount1

Called when right hand counts 1

onLeftCount2

Called when left hand counts 2

onRightCount2

Called when right hand counts 2

onLeftCount3

Called when left hand counts 3

onRightCount3

Called when right hand counts 3

onLeftCount4

Called when left hand counts 4

onRightCount4

Called when right hand counts 4

onLeftCount5

Called when left hand counts 5

onRightCount5

Called when right hand counts 5

onLeftPalmOpen

Called when left hand is opened fully.

onRightPalmOpen

Called when right hand is opened fully.

onLeftFistClosed

Called when left hand is closed fully. Useful for grabbing or holding objects with handles. E.g. use when holding a bottle.

onRightFistClosed

Called when right hand is closed fully. Useful for grabbing or holding objects with handles. E.g. use when holding a bottle.

onLeftPinchDown

Called when left hand index and thumb pinch down to pinch.

onRightPinchDown

Called when right hand index and thumb pinch down to pinch.

onLeftPinchUp

Called when left hand index and thumb release from pinching.

onRightPinchUp

Called when right hand index and thumb release from pinching.

onLeftRock

When left hand makes a clench fist.

onRightRock

When right hand makes a clench fist.

onLeftScissors

When left hand makes a scissors gesture.

onRightScissors

When right hand makes a scissors gesture.

onLeftPaper

When left hand makes a paper gesture.

onRightPaper

When right hand makes a paper gesture.

onLeftSwipeLeft

called when left hand swipes to the left.

onLeftSwipeRight

called when the left hand swipes to the right.

onLeftSwipeUp

called when left hand swipes upwards.

onLeftSwipeDown

called when left hand swipes downwards.

onRightSwipeLeft

Called when the right hand swipes left.

onRightSwipeRight

Called when the right hand swipes right.

onRightSwipeUp

Called when the right hand swipes upwards.

onRightSwipeDown

Called when the right hand swipes downwards.