Correction shader + autres choses
This commit is contained in:
		| @@ -70,8 +70,8 @@ void Player::Move(bool front, bool back, bool left, bool right, bool jump, bool | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	if (dbljump < 1 && ( left || right || front || back) ||  | ||||
| 		dash && !(left || right || front || back))  | ||||
| 	if ((dbljump < 1 && ( left || right || front || back)) ||  | ||||
| 		(dash && !(left || right || front || back)) ) | ||||
| 	{ | ||||
| 		yrotrad = (m_rotY / 57.2957795056f); // 180/Pi = 57.295... | ||||
| 		xrotrad = (m_rotX / 57.2957795056f); | ||||
| @@ -139,3 +139,9 @@ void Player::ApplyTransformation(Transformation& transformation, bool rel) const | ||||
| 	transformation.ApplyRotation(-m_rotY, 0, 1, 0); | ||||
| 	if (rel) transformation.ApplyTranslation(-m_position); | ||||
| } | ||||
|  | ||||
| Vector3f Player::GetPosition() const { return m_position; } | ||||
|  | ||||
| Vector3f Player::GetDirection(bool velocity = false) const { | ||||
| 	return Vector3f(); // Temporaire. | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user