Bientôt un monde infini?
This commit is contained in:
		| @@ -25,9 +25,9 @@ Vector3f Player::GetInput(bool front, bool back, bool left, bool right, bool jum | ||||
| 	float yrotrad = (m_rotY / 57.2957795056f); // 180/Pi = 57.295... | ||||
| 	float xrotrad = (m_rotX / 57.2957795056f); | ||||
|  | ||||
| 	m_direction = Vector3f(cos(yrotrad) * cos(xrotrad), | ||||
| 	m_direction = Vector3f(sin(yrotrad), | ||||
| 		-sin(xrotrad), | ||||
| 		sin(yrotrad) * cos(xrotrad)); | ||||
| 		-cos(yrotrad)); | ||||
|  | ||||
| 	if (front) { | ||||
| 		delta.x += float(sin(yrotrad)) * elapsedTime * 10.f; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user