Game Development Community

Preventing vehicle from trying to climb walls

by Ronald J Nelson · in Torque Game Engine · 07/08/2007 (8:25 pm) · 1 replies

I don't know if anyone else has noticed this and I hope so because I would like to see what you did to solve it.

With stock TGE, drive the buggy into a wall it will try to climb it until it flips. A car shouldn't do that when the wall is straight up and down it should slide against it. Has anyone figured out a way to do this?

#1
07/09/2007 (6:59 pm)
I think it really depends.

If it is front wheel drive it definately shouldn't climb a wall, but a rear wheel could under certain circumstances. Like if the front wheels were much bigger than the rear, the car might not be perpindicular to the wall and therefore try to climb up it.

If the front and rear wheels were the same size, but the center of gravity was toward the back it may try to climb it as well if rear wheel torque caused the shocks to compress and lower the rear, once again causing it to not be perpindicular to the wall.

Haven't looked into it myself but thought I might take a stab at it....