SetPosition, final part

This commit is contained in:
Sergeanur
2020-05-05 04:45:18 +03:00
parent 131e8af174
commit 84c9484e55
20 changed files with 129 additions and 143 deletions

View File

@@ -12,9 +12,9 @@ CPlaceable::~CPlaceable(void) = default;
void
CPlaceable::SetHeading(float angle)
{
CVector pos = GetPosition();
CVector pos = GetMatrix().GetPosition();
m_matrix.SetRotateZ(angle);
GetPosition() += pos;
GetMatrix().Translate(pos);
}
bool