Game Development Community

Basic Math Functions?

by David Cobb · in Torque Game Builder · 03/14/2005 (12:40 am) · 3 replies

I'm looking for sin, cos, abs, sqrt, pow, etc. Since I can't see all the TorqueScript documentation (only a T2D licensee) I have no way of figuring out what they are called. Could someone point me to a list of common Torque Script math functions?

#1
03/14/2005 (12:52 am)
You've basically got them there but they're in this format...

mCos()
mSin()
mTan()
mAtan()
mAbs()
mPow()

The quickest way to get a complete list is to look in "math\mConsoleFunctions.cc".

- Melv.
#2
03/14/2005 (12:54 am)
NM...

what Melv Said ;)
#3
03/14/2005 (2:17 am)
Thanks! : )