Iiiiiiiii don't wanna fly!

This commit is contained in:
Marc-Eric Martel
2021-10-01 10:52:33 -04:00
parent bce97c3480
commit 62caee0196
5 changed files with 88 additions and 17 deletions

View File

@@ -8,13 +8,17 @@ public:
Player(const Vector3f& position, float rotX = 0, float rotY = 0);
void TurnLeftRight(float value);
void TurnTopBottom(float value);
void Move(bool front, bool back, bool left, bool right, float elapsedTime);
void Move(bool front, bool back, bool left, bool right, bool jump, float elapsedTime);
void ApplyTransformation(Transformation& transformation, bool rel = true) const;
private:
Vector3f m_position;
float m_rotX = 0;
float m_rotY = 0;
float m_accWS = 0;
float m_accAD = 0;
float m_accjmp = 0;
bool jumped = false;
};
#endif //_PLAYER_H__