Shooting projectile, which gestures?

Hi! I am making a game for visionOS and was wondering how can I use gestures to perform the functionality?

When user pinches the finger, the trajectory starts… when the hand is moved the trajectory moves… and when the user release the pinch gesture the projectile is fired.

I have got this setup for mouse and just want to convert it to gestures now. Any guidance would be great. Thanks!

I recommend checking out the package samples, specifically the object manipulation scene.

At a high level you want to use the SpatialPointerDevice and get the active pointer state then query the phases.

When user pinches the finger

.Began

when the hand is moved

.Moved

when the user release the pinch gesture

.Ended or .Canceled