Skip to main content
gamedev.net
🔒 Locked

Help! Vehicle Collision Impact Speed

Started by teslaaa 0 replies 1.2k views
Original Post
teslaaa
teslaaa
How do I calculate the impact speed of two vehicles with velocity vectors of

v1 ( 34, 34, 0)
v2 ( 0, 50, 0)


Many Many Thanks!!
MausGames
MausGames
You can calculate the length of both:
sqrt( x*x + y*y + z*z ) = length

thats basically the speed in your example, but...

if you want to calculate the force, you should get the dot-product between the normalized velocities and the normalized position-difference (during collision):
norm( pos1 - pos2 ) = diff
dot( - diff, norm( v1 ) ) = strength1
dot( + diff, norm( v2 ) ) = strength2

and multiply it with the speed/length value (and maybe with a object-mass).

Maus


btw: http://www.gamedev.net/topic/625147-car-collision-speeds/
Thank you for playing! 🐬

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.