Doppler style vehicle collisions help
by Ronald J Nelson · in Torque Game Engine · 09/27/2005 (8:11 am) · 1 replies
I am trying to develop a collision system that would replace just entering a value for the amount of impulse with a a variable base upon the following:
Vehicle 1 traveling at a certain velocity
Vehicle 2 traveling at a different velocity
If Vehicle 1 were to collide with Vehicle 2 with something like a rearend collision, the amount of impulse/ damage would be affected by the difference of the two. Since obviously a vehicle driving away from the vehicle that collides into the rear of it would sustain less damage than if it were stationary or traveling towards the other vehicle.
I need to have some sort of a system that gets both vehicle's velocities and applies the impulse by the vector they collide at. Any help would be greatly appreciated.
Vehicle 1 traveling at a certain velocity
Vehicle 2 traveling at a different velocity
If Vehicle 1 were to collide with Vehicle 2 with something like a rearend collision, the amount of impulse/ damage would be affected by the difference of the two. Since obviously a vehicle driving away from the vehicle that collides into the rear of it would sustain less damage than if it were stationary or traveling towards the other vehicle.
I need to have some sort of a system that gets both vehicle's velocities and applies the impulse by the vector they collide at. Any help would be greatly appreciated.
Torque Owner Stefan Lundmark