GetObjectVelocity
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Returns the calling reference's current Velocity on the (optional) specified Axis. If no axis is specified, the total, absolute velocity (product of all three axes) is returned.
Syntax
(velocity:float) reference.GetObjectVelocity axis:X/Y/Z
Example
set fVelocity to objectRef.GetObjectVelocity
set fVelocityZ to objectRef.GetObjectVelocity Z
Notes
- The sign of the returned value indicates direction: a negative Z velocity indicates the object is speeding downwards.
- This function measures velocity as 0.1 Meter/sec, or 7 Units/sec.