Game Development Community

Is it possible to slow/stop movement up slopes?

by Spencer Boomhower · in Artist Corner · 12/29/2002 (11:20 pm) · 2 replies

Just curious. Ideally I'd like to be able to keep the player from zooming up the side of a cliff the same speed he moves when on flat ground (as seems to be the case in the Torque FPS Demo). Make it feel like you really have to shift into low gear to get up a steep hill, or even make a certain angle too steep to walk up.

Apologies if this info is available in the docs somewhere...

-Spencer

#1
12/30/2002 (9:27 am)
in the player datablock, located in player.cs, look for:


runSurfaceAngle =

and

jumpSurfaceAngle =

and set them to suit your needs. They set the maximum allowable angle for each of those action modes.
#2
12/30/2002 (10:41 am)
Thanks! That worked.

-Spencer