Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


2D Bitmap-based Car Collision Response

This topic is 6143 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

Hi there, I want to have a cool collision response in my game streets that a lot of bitmap-based cars are going along.I find the collision but its rather difficult to have the cars responde well.consider two car going along the street one at the back of another.If the car behind, hit the other ,how should the two car be going?(I know the ellastic response but Ii think this is a horse of different color,isn''t it?) Thanks alot.

Share this post

Link to post
Share on other sites
there is the elastic collision... and then there is the INELASTIC collision...
for an inelastic collision, the two cars must stick together, rather than bounce.
the sum of the momentum''s of the two cars equals the momentum of the resulting twisted heap when they crash. i forget the equations to get the momentums of things, but it has to do with their mass and velocity (you can find this equation in any first-year physics book, and probably at plenty of .EDU websites)...
of course, some of the energy is lost due to friction and the sound (yes, even vibrating the air to make a nice BAM sounds wastes energy) so in reality the carwreck will be moving slightly slower than if it happened in space...
also, a car collision in reality is somewhere between elastic and inelastic... they both dent in, which reduces the total energy of the system.

--- krez (krezisback@aol.com)

Share this post

Link to post
Share on other sites

  • 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!