mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
perf: adjust player movement speed
This commit is contained in:
@@ -12,14 +12,15 @@ class World;
|
||||
|
||||
class Player {
|
||||
private:
|
||||
constexpr static float ACCELERATION = 25.0f;
|
||||
constexpr static float DECELERATION = 40.0f;
|
||||
constexpr static float ACCELERATION = 10.0f;
|
||||
constexpr static float DECELERATION = 15.0f;
|
||||
constexpr static float G = 22.5f;
|
||||
float m_yaw = 0.0f;
|
||||
float m_pitch = 0.0f;
|
||||
|
||||
float m_sensitivity = 0.15f;
|
||||
|
||||
float m_speed = 5.0f;
|
||||
float m_speed = 4.5f;
|
||||
|
||||
// player is tow block tall, the pos is the lower pos
|
||||
glm::vec3 m_player_pos = glm::vec3(0.0f, 15.0f, 0.0f);
|
||||
|
||||
Reference in New Issue
Block a user