How to estimate collision power?
Posted: Sun May 22, 2016 6:13 am
I need to estimate the power of a collision to decide the future of the colliding objects: should they explode, or just "bounce" and stay alive.
The exact case:
Box is falling on the ground (static body; segment shape). If it falls "hard" it should explode and disappear from the world, if it falls "soft" then it should stay as is.
I guess one should use totalKE in post solve callback to make the decision. But the problem is that i do not know how to "normalize" the total kinetic energy (because i do not know its possible min and max values).
I would appreciate if somebody could point in the right direction!
Thank you.
The exact case:
Box is falling on the ground (static body; segment shape). If it falls "hard" it should explode and disappear from the world, if it falls "soft" then it should stay as is.
I guess one should use totalKE in post solve callback to make the decision. But the problem is that i do not know how to "normalize" the total kinetic energy (because i do not know its possible min and max values).
I would appreciate if somebody could point in the right direction!
Thank you.