mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
add Hitbox.gravityMultiplier
This commit is contained in:
parent
f3201b7742
commit
f52a435aea
6 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue