fix: ceiling collision prevents descent during jump

This commit is contained in:
2026-03-29 21:37:47 +08:00
parent fb11fee955
commit 53b56044b2
2 changed files with 8 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ private:
float m_speed = 4.5f;
float down_speed = 0.0f;
bool can_up = true;
float up_a = 0.0f;
float speed = 0;
glm::vec3 direction = glm::vec3(0.0f, 0.0f, 0.0f);
glm::vec3 move_distance {0.0f, 0.0f, 0.0f};