Grabbing values from return functions
by Morten Hougs · in Torque Game Builder · 05/26/2006 (11:47 am) · 1 replies
How do I grab just one of the values from functions that return more than one value? (or seem to return more than one - still a newbie trying to grasp the basics..)
E.g. the function getLinearVelocityPolar(). According to the reference, this function "Retrieves the objects linear velocity as angle/speed." I'm only interested in getting the speed value, so how do I grab this, and not the angle?
E.g. the function getLinearVelocityPolar(). According to the reference, this function "Retrieves the objects linear velocity as angle/speed." I'm only interested in getting the speed value, so how do I grab this, and not the angle?
Torque 3D Owner Matthew Langley
Torque
:)