mirror of
https://github.com/cyberarm/i-mic-fps.git
synced 2025-12-15 15:42:35 +00:00
Make PhysicsManager use Map#gravity, defined EARTH and MOON gravity's
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user