QAngle: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) (fixing Hammer angles) |
TomEdwards (talk | contribs) m (wth?) |
||
Line 21: | Line 21: | ||
[[Category:Glossary]] | [[Category:Glossary]] | ||
[[Category:Helpers]] | [[Category:Helpers]] | ||
[[Category: | [[Category:Programming]] |
Revision as of 16:19, 17 March 2009
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);