SyndicatQuebecoisdelaConstr.../SQCSim2021/player.h
Marc-Eric Martel 47eca60cf5 Ajout du Dash!
2021-10-04 15:01:25 -04:00

25 lines
595 B
C++

#ifndef _PLAYER_H__
#define _PLAYER_H__
#include "vector3.h"
#include "transformation.h"
#include <cmath>
class Player {
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, bool jump, bool dash, float elapsedTime);
void ApplyTransformation(Transformation& transformation, bool rel = true) const;
private:
Vector3f m_position;
float m_rotX = 0;
float m_rotY = 0;
float m_topspeed = 30;
float m_jumpforce = 0.6f;
};
#endif //_PLAYER_H__