[SOLVED] Dynamic Rigid Body is not falling with gravity or affected by forces

The cube in my example is a Rigid Body with Dynamic enabled (not static). It also has Colider enabled. You would expect this cube to fall, with gravity. But its just staying still.

Would this be a bug from the latest PlayCanvas update? This is only happing for newly created projects since the recent update.

Hi, we are in the process of updating physics and for now the option to include a physics library is not automatically enabled. Please go to Scene Settings->Physics to enable physics in your game.

Thanks :slight_smile: will do that now.

Hi codebon, can you share more info about this?

Hi @Hugo_D,
We’re adding support for wasm modules in playcanvas and then updating to the latest version of ammo.js.

@Hugo_D Yes. We are updating the way ammo.js is included in a PlayCanvas project in the Editor. Currently, if the ‘Enable Physics’ checkbox in Settings is checked, ammo.js is loaded internally. We’re removing the ‘Enable Physics’ checkbox and you’ll instead import ammo.js as a regular script asset. This means you can replace it which whatever version you like - for example, you could build ammo.js from source and use that (say, if you wanted to expose some new Bullet functions to your app). A further benefit is that we’ll be enabling the loading of the WebAssembly build of ammo.js with this update. This will bring a large performance boost for using physics in your apps.


Amazing! Thank for your answers

When will this update be released?

Hi @Geniteam,

The new physics has now been released. For updating existing projects you can see https://developer.playcanvas.com/en/user-manual/physics/physics-migration/


1 Like

So, does the performance improve by using the WASM modules?

Yup that’s right.

1 Like

Thank you, Good to see playcanvas engine improving.