Sliding corpses
by Jeff Wellock · in Torque Game Engine · 08/26/2001 (9:37 am) · 3 replies
In my game, i've made the player corpses stay around for a very long time, but they slide down the smallest hill and look really really dumb, is there anyway to fix this? to get them to stand still? or to get them to only slide down steep hills. Any help is appreciated
About the author
Torque 3D Owner Phil Carlisle
oh well, another useless post.
You need to find the slope at the contact point in the collision test.. and change the forward velocity if the slope is low..
basically, add some friction into the calculation OR simply cap a small movement velocity to zero (i.e. do a length() on the velocity vector, and if its too small set it to zero).