How can we make cannon more stable

cannon: cannon
ammo: ammo

playground_cannon: https://playground.babylonjs.com/#H9YK7I#4
playground_ammo: https://playground.babylonjs.com/#H9YK7I#1

Unfortunately I am not sure we can from the Babylon side :frowning: Adding @RaananW who knows the history of Physics lib we are using.

This seems to be an issue with the cylinder impostor of cannon. collisions are constantly calculated for some reason. A box impostor worked as expected.

There is sadly little we can do about it.

1 Like

Thank you very much.

oh,thank you.
Can we change some parameters to make it better? or the simplest way is change the engine? Cylinder is also normal impostor.

There is little you can change. I have tried reducing restitution to 0 and friction to 1 and they still bounce like they just don’t care.
It will be interesting to get it reproduced in cannon-native code instead to be able to pinpoint the issue. Cannon is not really being developed further, but there might be a fix that will benefit the framework

Thank you very much.

1 Like