SetPosition, final part

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

No files matched your search

+2 -2
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