How to use cannon-es in the Playground instead of old cannon?

I want to use cannon-es instead of old cannon in the Playground. But I don’t know how to do this.
Playground doesn’t support import statements and uses old cannon by default.
https://playground.babylonjs.com/#C98IX9

it is currently impossible to use external es modules in the playground. I am sorry I don’t have a better answer…

1 Like