AngleVectors()
Jump to navigation
Jump to search
AngleVectors()
converts a QAngle
into either one or three normalised Vector
s.
- If there is only one Vector, it points in the same direction as the QAngle ("forward").
- If there are three Vectors, they point forward, right and up respectively.
VectorAngles()
converts a single Vector
into a QAngle
. You can also pass a pseudoup
Vector (
Todo: explain
).

AngleVectors()
requires you to pass pointers while VectorAngles()
does not.Example
Vector fwd, rt, up;
AngleVectors( myAngle, &fwd, &rt, &up);
QAngle angles;
VectorAngles( myVector, angles );