mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
feat: applying Y velocity
This commit is contained in:
parent
06d03f889c
commit
81858bc7f8
3 changed files with 18 additions and 34 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue