From 9bdc94053e94c7ca47e2e0dc0db4483a8c0ddfb8 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Sat, 2 Nov 2013 17:45:48 +0100 Subject: Added cEntity:GetYaw() and cEntity:SetYaw(). This is the preferred way to get / set rotation, GetRotation() and SetRotation is obsoleted due to bad name. --- source/Entities/Entity.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Entities/Entity.cpp') diff --git a/source/Entities/Entity.cpp b/source/Entities/Entity.cpp index d465c75bd..3bea7bc01 100644 --- a/source/Entities/Entity.cpp +++ b/source/Entities/Entity.cpp @@ -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(); } -- cgit v1.2.3