Correction shader + autres choses

This commit is contained in:
Marc-Eric Martel
2021-10-25 10:50:08 -04:00
parent 781c2776b7
commit fbf2e8858e
10 changed files with 99 additions and 46 deletions

View File

@@ -70,8 +70,8 @@ void Player::Move(bool front, bool back, bool left, bool right, bool jump, bool
}
}
if (dbljump < 1 && ( left || right || front || back) ||
dash && !(left || right || front || back))
if ((dbljump < 1 && ( left || right || front || back)) ||
(dash && !(left || right || front || back)) )
{
yrotrad = (m_rotY / 57.2957795056f); // 180/Pi = 57.295...
xrotrad = (m_rotX / 57.2957795056f);
@@ -139,3 +139,9 @@ void Player::ApplyTransformation(Transformation& transformation, bool rel) const
transformation.ApplyRotation(-m_rotY, 0, 1, 0);
if (rel) transformation.ApplyTranslation(-m_position);
}
Vector3f Player::GetPosition() const { return m_position; }
Vector3f Player::GetDirection(bool velocity = false) const {
return Vector3f(); // Temporaire.
}