Game Development Community

how to define "flat" or "walkable" terrain/objects?

by chris123 · in Torque X 3D · 07/10/2009 (8:44 am) · 3 replies

Is there a property somewhere which defines the maximum angle which can be walked on? for example if 0 equals flat terrain and 90 equals exactly vertical (a wall perpendicular to the flat terrain) is it possible to define the angle above which an object cannot come to rest on a surface? e.g. setting this property to 45 would mean the player character could walk on any surface up to 45 degrees from horizontal but would slide off anything greater than 45?
I'm sure I've seen information on this somewhere before but can't find it now.

#1
07/10/2009 (9:24 am)
You're looking for runSurfaceAngle, in the player's datablock.

hope that helped!
Bryce
#2
07/20/2009 (4:55 pm)
@Bryce - Are you referring to TGE/TGEA/T3D? I don't think TX3D works this way... I could be wrong however. :)

Brian
#3
07/20/2009 (5:18 pm)
I found this in TGE...I'm not familiar with TX