Ammo Does not Work as a Physics Engine in the Babylon 4.7.0 Editor

When I attempt to change my scene’s physics engine from Cannon to Ammo.js (letting the editor automatically initialize physics, as it had been doing with Cannon), running my project results in the error “AmmoJS is not ready. Please make sure you await Ammo() before using the plugin.”.

Hi @frosting and welcome to the forum!
ping @julien-moreau
I think you have to load the ammo.js script initialize it with await Ammo();

1 Like

Hey @frosting

Cedric is right, in the index.html file there is a link by default pointing to the cannonjs library. You should replace it by Ammo and call await Ammo(); before loading the scene

Does it help you?

1 Like