mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add rigidbody.set/get_gravity_scale
This commit is contained in:
parent
cb37d3b00c
commit
b4cf00a8f1
4 changed files with 19 additions and 3 deletions
|
|
@ -32,7 +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;
|
||||
float gravityScale = hitbox->gravityScale;
|
||||
|
||||
bool prevGrounded = hitbox->grounded;
|
||||
hitbox->grounded = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue