collision/more physics updates
All checks were successful
Build Project / build (ubuntu-latest) (push) Successful in 17m55s
All checks were successful
Build Project / build (ubuntu-latest) (push) Successful in 17m55s
This commit is contained in:
@@ -21,7 +21,7 @@ void UpdateEntities(float dt, int screenWidth)
|
||||
bool onGround = IsGrounded(e);
|
||||
|
||||
// Apply gravity force if enabled for this entity
|
||||
if (e->affectedByGravity)
|
||||
if (e->affectedByGravity && !onGround)
|
||||
{
|
||||
ApplyForce(
|
||||
e,
|
||||
|
||||
Reference in New Issue
Block a user