feat: applying Y velocity

This commit is contained in:
MihailRis 2026-03-13 21:31:20 +03:00
parent 06d03f889c
commit 81858bc7f8
3 changed files with 18 additions and 34 deletions

View file

@ -44,14 +44,13 @@ private:
glm::vec3& vel,
glm::vec3& pos,
const glm::vec3& half,
float stepHeight
float stepHeight,
float dt
);
void calcSubstep(
Hitbox& hitbox, glm::vec3& vel, glm::vec3& pos, float dt, int substeps
);
void calcSubstep(Hitbox& hitbox, glm::vec3& vel, glm::vec3& pos, float dt);
bool calcCollisionNegY(Hitbox& hitbox, const glm::vec3& half);
bool calcCollisionNegY(Hitbox& hitbox, const glm::vec3& half, float dt);
void updateSensors(Hitbox& hitbox);
};