From 0fa2320e978926db6781a2bdcdf5a9b6f0317e93 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 26 Oct 2016 09:27:40 -0400 Subject: Physics and world collide --- src/player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/player.cpp') diff --git a/src/player.cpp b/src/player.cpp index 59274b3..37a958d 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -12,7 +12,9 @@ void PlayerSystem::create(void) player = game::entities.create(); player.assign(0.0f, 100.0f); player.assign(0.0f, 0.0f); - player.assign(-0.001f); + // The new g value is a multiplier for the gravity constant. This allows for air resistance simulation. + //player.assign(-0.001f); + player.assign(1); player.assign(-0.2f); auto sprite = player.assign(); -- cgit v1.2.3