Game Development Community

Sort of a traction thing. not sure what single concept is called

by Jonathan Rose · in Torque Game Engine · 01/23/2005 (7:47 am) · 3 replies

What I have no... is whenever my character comes to a bump in the surface and keeps running, he kinda flies off the terrain. The same thing happens if he is running on a ground that sort of curves downwards... is there anyway to kinda make the character stick to the surface that it is currently moving on?

#1
01/23/2005 (3:17 pm)
Apply a small force that's, say, the opposite of the normal of the current surface?
#2
01/23/2005 (5:00 pm)
Hmmm... I don't suppose you could enlighten me or point me to a resource that would help me do that could you?
#3
01/23/2005 (5:07 pm)
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6853
Here's a script reference. Containerraycast is the function you need for finding out which direction is the normal. Applyimpulse will let you apply a force to your object.