Are there Math functions in TGB script?
by Russell Buxton · in General Discussion · 12/28/2007 (10:09 pm) · 2 replies
Hello...Are there Math functions in TGB script?I've looked through the references and I don't see anything like"Math.sin,cos,atan,atan2,tangent,abs,round,ceiling,PI..etc.Thanx for any help.
#2
12/29/2007 (4:48 pm)
Ok...I didn't check that section.I thought it was all debugging methods.One thing I don't see is an atan2() method.I use this sometimes in "action script" to return the correct quadrant of rotation.I don't have a deep understanding of how it accomplishes this so I need to know if TS has an equivalent method or a formula I can use as a work-around.Thanx for your help...:)
Torque 3D Owner Tom Perry
tdn.garagegames.com/wiki/TorqueScript_Console_Functions_21
:)