I’m using the latest alpha of
4.0.0-alpha.32, and it seems that I can’t call
scene.enablePhysics() with or without arguments unless I’ve also installed
@babylonjs/inspector: 4.0.0-alpha.32 and included
import '@babylonjs/inspector'; at the top of my file for side-effects. I get this error without it:
Uncaught TypeError: scene.enablePhysics is not a function
and indeed, if I inspect the scene object in the debugger, it appears to be a normal Babylon scene object but it’s missing the enablePhysics function.
I can’t demo this using the playground because it appears that the inspector is included by default. Not sure whether I can change that.
Is it intentional that the inspector is required to use physics?