From 9fb15e572d38effe7e62caa1e347c416d651a11e Mon Sep 17 00:00:00 2001 From: Jeasonfire Date: Wed, 13 May 2015 23:48:40 +0300 Subject: [PATCH] Tweaked numbers a bit, made tunneling bugs less frequent. --- core/src/com/saltosion/gladiator/systems/PhysicsSystem.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/com/saltosion/gladiator/systems/PhysicsSystem.java b/core/src/com/saltosion/gladiator/systems/PhysicsSystem.java index 18d2008..2478549 100644 --- a/core/src/com/saltosion/gladiator/systems/PhysicsSystem.java +++ b/core/src/com/saltosion/gladiator/systems/PhysicsSystem.java @@ -12,7 +12,7 @@ import com.saltosion.gladiator.util.Direction; public class PhysicsSystem extends EntitySystem { - private static final float MAX_VEL = 2f, COLLISION_PRECISION = 24f, UPDATES_PER_SECOND = 120f; + private static final float MAX_VEL = 1.75f, COLLISION_PRECISION = 18f, UPDATES_PER_SECOND = 120f; private static final ComponentMapper pm = ComponentMapper.getFor(CPhysics.class); private static final ComponentMapper cm = ComponentMapper.getFor(CCombat.class); @@ -150,6 +150,7 @@ public class PhysicsSystem extends EntitySystem { // cp0 is going up, stop cp0.getVelocity().y = 0; } + cp0.getPosition().y += y10 - y01; } if (cp0.getCollisionListener() != null) {