Index

:!: Available in version 1.2.1 and later.

RotateUnit

RotateUnit(<-unit <-rot <-maxDegrees)

Description

Rotates a unit no more than maxDegrees towards the angles (in degrees) specified by the rot vector.

Examples

#Rotate ourselves around the y axis to point at 45 degrees
RotateUnit(self V3(0 45 0) 1)

Index