Bientôt un monde infini?

This commit is contained in:
MarcEricMartel
2021-11-26 11:59:02 -05:00
parent 6446be1ceb
commit fe624fdafc
14 changed files with 815 additions and 146 deletions

View File

@@ -25,9 +25,9 @@ Vector3f Player::GetInput(bool front, bool back, bool left, bool right, bool jum
float yrotrad = (m_rotY / 57.2957795056f); // 180/Pi = 57.295...
float xrotrad = (m_rotX / 57.2957795056f);
m_direction = Vector3f(cos(yrotrad) * cos(xrotrad),
m_direction = Vector3f(sin(yrotrad),
-sin(xrotrad),
sin(yrotrad) * cos(xrotrad));
-cos(yrotrad));
if (front) {
delta.x += float(sin(yrotrad)) * elapsedTime * 10.f;