This is an old revision of the document!
⇐ Index
RotateUnitTowards(<-UID <-pos <-maxRotationDeg)
Rotates a unit so that its forward, or positive Z axis, points towards the supplied vector position. The vector pos (X,Y,Z coordinates) are a position in 3D space.
The max rotation can be limited by supplying a maxRotationDeg in degrees.
Negative values are not supported for maxRotationDeg. Should maxRotationDeg be negative, this API will have no affect.
RotateUnitTowards(<-UID V3(42 10 23) 1)
⇐ Index