Jump to content
  • Advertisement
Sign in to follow this  
zedz

energy of a collision

This topic is 3637 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

gidday what would be the damage of two bodies colliding Im guessing something like energy = (total_speed^2) * total_mass (perhaps ^2) bodyA damage = energy * (massB/total_mass) bodyB damage = energy * (massA/total_mass) ta zed

Share this post


Link to post
Share on other sites
Advertisement
It's been awhile since I've done much physics work, but I think what you want to do is calculate the momentum of each object. What you do from there depends on what you're trying to do.

Do you want to have the objects bounce off each other, or are you trying to deform them, or what?

Share this post


Link to post
Share on other sites
Just compute kinetic energy of one object moving relative to the other.

v1, v2 ... velocity vectors of both objects

v = v2 - v1 ... relative velocity of the objects

Ek = m * |v|2 / 2 ... impact energy (kinetic energy of the objects relative to each other)

EDIT:

Weighting damage by the relative mass is good approximation for objects that are of the same material. But for example when I take a piece of wood (a baseball bat is a good example) and hit someone in the head with it, it would do minimal damage to the bat although its mass is much smaller.

You would need to account for material properties (none of them I can imagine or quantify now) and other things. When objects don't collide head on, large fraction of kinetic energy may go into resulting rotation of the objects instead of deforming them.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!