Game Development Community

Slope movement

by __._ · in Torque Game Engine · 11/23/2006 (5:10 am) · 2 replies

I'm sure there is a simple answer to my question, but I have searched this site and the starter script codes, and found nothing. How can I adjust the maximum angle of a slope that allows for normal walking? At the moment the player can walk up against slopes that are nearly vertical, which isn't exactly realistic. How can I adjust that?

Thanks in advance

#1
11/23/2006 (7:45 am)
In player.cs locate datablock PlayerData(LightMaleHumanArmor) or whatever you named it.
These variables control what angle the player can move at. This is what I use.

// Controls over slope of runnable/jumpable surfaces
runSurfaceAngle = 45;
jumpSurfaceAngle = 45;
#2
11/23/2006 (7:49 am)
Thanks Jackie. I am basing my work on the tutorial.base, which doesn't have these values by default. That is "probably" why I couldn't find i. It works now.