collision/more physics updates
All checks were successful
Build Project / build (ubuntu-latest) (push) Successful in 17m55s

This commit is contained in:
swim67667
2026-06-27 00:54:11 -04:00
parent 40747ec508
commit fded40cbd9
5 changed files with 35 additions and 21 deletions

View File

@@ -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,