XR Throw Lab (playground)

For the past few weeks I have been working on a project which focuses around throwing objects in virtual reality. I created a playground to help me test the functionality and tweak parameters, and I would like to share it with the community!


  • Throwing balls with the VR controllers
  • Adjustable bucket distance to test throwing ranges
  • Center of gravity control to make it easier to ‘flick’ throw with the wrist
  • Exponential smoothing of calculated throwing speed and direction

Playground here: https://playground.babylonjs.com/#K1WGX0#36 (5.0.0-alpha.24 typescript)


@RaananW will love to see that ;D


I noticed you use the angular and linear velocity that comes with the pose itself, but this is only available in the oculus browser at the moment. If you want to enable it cross-browser you can use the physics feature that will emulate those two values if they are not available.