PDA

View Full Version : Get Thing Speed


Edward
03-11-2005, 03:46 AM
Hi!
How do I get the speed of a thing in Flex format?

Emon
03-11-2005, 11:43 AM
GetThingVel? It will return a vector though, I think, so you'll want to extrapolate speed from it.

Edward
03-11-2005, 12:34 PM
And how do I do that?

Quib Mask
03-11-2005, 12:40 PM
VectorLen(GetThingVel(thing));

If you look at GetThingVel() in the DataMaster, under the syntax example, it says "The length of the velocity returned by GetThingVel() is the speed that the thing is moving at."

QM