Vehicle Collision?
by Stephen · in Torque Game Engine · 05/04/2006 (12:32 am) · 1 replies
I have vehicles in my game and I would like to know how to get the vehicles to push the players. In the collision function I have it where if the vehicle is going so fast and hits the player, the player gets killed. But if the vehicle is going slow and a player gets in front, the vehicle can push the player out of the way.
And how can I make it where if the vehicle hits a tree or something like another vehicle it takes on damage going at a set speed?
Thanks
And how can I make it where if the vehicle hits a tree or something like another vehicle it takes on damage going at a set speed?
Thanks
Torque Owner James Laker (BurNinG)
link
The damage based on speed is already implemented
Check the TDN here
// Object Impact Damage (uses DamageType::Impact) collDamageThresholdVel = 23.0; collDamageMultiplier = 0.02;