This commit is contained in:
Marc-Eric Martel
2021-09-27 13:56:29 -04:00
parent 8f387d2f34
commit 13b567a03e
4 changed files with 33 additions and 22 deletions

View File

@@ -40,8 +40,8 @@ void Player::Move(bool front, bool back, bool left, bool right, float elapsedTim
}
}
void Player::ApplyTransformation(Transformation& transformation) const {
void Player::ApplyTransformation(Transformation& transformation, bool rel) const {
transformation.ApplyRotation(-m_rotX, 1.f, 0, 0);
transformation.ApplyRotation(-m_rotY, 0, 1.f, 0);
transformation.ApplyTranslation(-m_position);
if (rel) transformation.ApplyTranslation(-m_position);
}