Game Development Community

Changing the max angle to alk up hill.

by Maximillian Brewer · in Torque Game Engine · 06/13/2008 (3:43 am) · 2 replies

Hi,

Is it possible to change the maximum angle that the game character can walk up. If so, how can you do this.

Thanks.

#1
06/13/2008 (7:12 am)
In player.cs, locate: datablock PlayerData(PlayerBody)

within that datablock you will find:

// Controls over slope of runnable/jumpable surfaces
runSurfaceAngle = 45;
jumpSurfaceAngle = 60;


runSurfaceAngle is what your lookin for
#2
06/14/2008 (11:54 pm)
Thanks Ron,

It works!!!!

Thankyou for such a quick responce, I only posted this yesturday.

Ross