Ajout de caméra
This commit is contained in:
		
							
								
								
									
										20
									
								
								SQCSim2021/player.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								SQCSim2021/player.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | ||||
| #ifndef _PLAYER_H__ | ||||
| #define _PLAYER_H__ | ||||
| #include "vector3.h" | ||||
| #include "transformation.h" | ||||
|  | ||||
| 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, float elapsedTime); | ||||
| 	void ApplyTransformation(Transformation& transformation) const; | ||||
|  | ||||
| private: | ||||
| 	Vector3f m_position; | ||||
| 	float m_rotX = 0;  | ||||
| 	float m_rotY = 0; | ||||
| }; | ||||
| #endif //_PLAYER_H__ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user