add Hitbox.gravityMultiplier

This commit is contained in:
MihailRis
2024-07-09 02:14:14 +03:00
parent f3201b7742
commit f52a435aea
6 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -22,7 +22,6 @@ void PhysicsSolver::step(
float delta,
uint substeps,
bool shifting,
float gravityScale,
bool collisions,
entityid_t entity
) {
@@ -33,6 +32,7 @@ void PhysicsSolver::step(
const glm::vec3& half = hitbox->halfsize;
glm::vec3& pos = hitbox->position;
glm::vec3& vel = hitbox->velocity;
float gravityScale = hitbox->gravityMultiplier;
bool prevGrounded = hitbox->grounded;
hitbox->grounded = false;