This time, we will introduce how to implement tracking in STYLY for Vision Pro. With hand tracking, you can make objects follow the hand, and you can also make them follow the head.
How to Implement Tracking
In the Scene, add “Head and Hand tracker” from Samples-STYLY→Head and Hand tracker.
This time, we will make a Cube follow the hand.
Create a Cube and set its Scale to (0.1, 0.1, 0.1).
Make the Cube a child of the Head and Hand tracker’s child object.
Head Tracker |
Tracks the head. |
Right Hand Tracker |
Tracks the right hand. |
Left Hand Tracker |
Tracks the left hand. |
We will track the right hand this time.
Set the Cube’s Position to (0, 0, 0).
This Position is relative to the right hand, so with some adjustments, you can track a point that is slightly offset from the hand.
Execute.
We have introduced the method of implementing tracking this time.