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:
parent
b00365a721
commit
389170eefe
2 changed files with 5 additions and 5 deletions
2
Player.h
2
Player.h
|
@ -17,7 +17,7 @@ public:
|
|||
float fov = 70;
|
||||
|
||||
void move(float dx, float dy);
|
||||
void rotate(int alpha);
|
||||
void rotate(float alpha);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue