Make PhysicsManager use Map#gravity, defined EARTH and MOON gravity's

This commit is contained in:
2019-09-27 14:41:50 -05:00
parent f3d3ceebb8
commit 4af7f21a51
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ class IMICFPS
if on_ground
entity.velocity.y = 0
else
entity.velocity.y -= IMICFPS::GRAVITY * entity.delta_time if entity.physics
entity.velocity.y -= @collision_manager.map.gravity * entity.delta_time if entity.physics
end
end
end