QAngle
Jump to navigation
Jump to search
| Description | Name | Value | Image | Code |
|---|---|---|---|---|
| An angular world orientation in degrees. |
Pitch | Y |
|
QAngle(y, z, x)
|
| Yaw | Z | |||
| Roll | X |
Converting to a vector
Angles chosen in Hammer will arrive as vectors, but in a bad format. Fix them up with this code:
Vector vecAbsDir;
QAngle angPushDir = QAngle(m_vecPushDir.x, m_vecPushDir.y, m_vecPushDir.z);
AngleVectors(angPushDir, &vecAbsDir);
