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) {