1
0
Fork 0

Player: Fix rotate

Rotation wasn't handled properly at all.
Properly bound between 0 and 360, and use
a proper modulo for floats.

Switch to float to have a more fluid rotation
between frames.
This commit is contained in:
trotFunky 2024-01-21 20:31:51 +00:00
parent b00365a721
commit 389170eefe
2 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ public:
float fov = 70;
void move(float dx, float dy);
void rotate(int alpha);
void rotate(float alpha);
};