1
0

Added cEntity:GetYaw() and cEntity:SetYaw().

This is the preferred way to get / set rotation, GetRotation() and SetRotation is obsoleted due to bad name.
This commit is contained in:
madmaxoft
2013-11-02 17:45:48 +01:00
parent 7dc96f0441
commit 9bdc94053e
4 changed files with 108 additions and 6 deletions

View File

@@ -1178,9 +1178,9 @@ void cEntity::SetMass(double a_Mass)
void cEntity::SetRotation(double a_Rotation)
void cEntity::SetYaw(double a_Yaw)
{
m_Rot.x = a_Rotation;
m_Rot.x = a_Yaw;
m_bDirtyOrientation = true;
WrapRotation();
}