How to measure impulse in ammo

Hi humans…

I currently have an obstacle in my quest to code completion(or game dev). so I need the earthers’ help with the the project.
As the title says, I want to measure impulse when objects collide, if possible inside the registerOnPhysicsCollide function. ALSO… Is possible to enable a single mesh to have collision with a physics body in a single code line, calling it to every single physics impostor is a bit… weird.

For ammo - CC @Cedric

No, there is no API for now to register contact callback between to impostors.
By impulse, do you mean penetration?

1 Like

I meant the impact unit of collision. e.g force x time, the rebound or change in momentum when a sphere hits an object,

Some more infos added to the collision callback:
PR distance and normal in collision callback for ammojs by CedricGuillemet · Pull Request #12986 · BabylonJS/Babylon.js · GitHub


Hello @TheScientist just checking in if Cedric’s PR solved your issues?