I’m new to babylon.js, been messing around with it for the last 6 weeks. It’s great.
My question is does the Havok physics engine not work when trying to use it with BABYLON.WebXRFeatureName.PHYSICS_CONTROLLERS ?
I’m trying to throw a ball using my Quest 2 motion controllers. I’m trying to do it the same way others have in the playground (the “XR Throw Lab” comes to mind).
If using Havok, I get an error “Uncaught (in promise) TypeError: this._physicsEngine.removeImpostor is not a function”.
https://playground.babylonjs.com/#G9G3IR#295 (tries to use physicsImpostor)
https://playground.babylonjs.com/#G9G3IR#296 (tries to use physicsAggregate)
Every forum post and playground that I’ve been studying use a different physics engine. When I tried using AmmoJS like others have, the error goes away and I’m able to enter VR. (haven’t implemented the throwing code yet, just happy to see the errors went away)
Should I not be using Havok for this? Or maybe my code is wrong and Havok could work?
Any help would be greatly appreciated. Thanks!!