MIST mag

From DCS World Wiki - Hoggitworld.com


mist.vec.mag

Added with: Mist 1.0
Description
Returns the magnitude of vec
Syntax
vec3 mist.vec.mag(vec3 vector1 )
Valid Input Values:
Return value:
vec3
Return example:
Usage Examples:
local unit = Unit.getByName("Hawg11")

local speed = mist.vec.mag(unit:getVelocity())

Notes:
Related Functions
Vectors: add, sub, scalar_mult, dp, cp, mag, getUnitVec, rotateVec2, get2DDist, get3DDist, getHeadingPoints

Scripting Engine

MIST Root Page