How to make a grabbable 3D object in webvr

Hello I am working on a webvr game.

I need to make a object be grabbable in game.

I want to make it so that when I drop the object it just falls. (I already have th physics setup)

How do I do this? (Editor link: https://playcanvas.com/editor/project/762432 ) (Note: this is a test game not the game I am working on) Thanks in advance!

You can do a raycast from your tracked hand controller into the direction that it’s pointing at.

If it intersects with something you can then keep that object in front of the tracked controller until the user lots go.

We do something similar here in web xr labs https://developer.playcanvas.com/en/tutorials/webxr-vr-lab/