diff options
Diffstat (limited to 'core/src/test/java/coffee/liz')
| -rw-r--r-- | core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java b/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java index 4c285fb..885c112 100644 --- a/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java +++ b/core/src/test/java/coffee/liz/dyl/systems/physics/PhysicsSystemsTest.java @@ -21,7 +21,7 @@ class PhysicsSystemsTest { @Test public void gravityAcceleratesEntityDownwardOverTime() { - final DAGWorld world = new DAGWorld(new ForceReductionSystem(GRAVITY), new IntegrationSystem()); + final DAGWorld world = new DAGWorld(new AccelerationSystem(GRAVITY), new MovementSystem()); final Entity entity = world.createEntity(); entity.add(new Mass(1f)); entity.add(new Velocity(Vec2f.ZERO)); @@ -37,7 +37,7 @@ class PhysicsSystemsTest { @Test public void forcesAreClearedEachFrame() { - final DAGWorld world = new DAGWorld(new ForceReductionSystem(GRAVITY), new IntegrationSystem()); + final DAGWorld world = new DAGWorld(new AccelerationSystem(GRAVITY), new MovementSystem()); final Entity entity = world.createEntity(); entity.add(new Mass(1f)); entity.add(new Velocity(Vec2f.ZERO)); @@ -53,7 +53,7 @@ class PhysicsSystemsTest { @Test public void entityLandsOnPlatformAndStops() { final DAGWorld world = new DAGWorld( - new ForceReductionSystem(GRAVITY), new IntegrationSystem(), new CollisionSystem()); + new AccelerationSystem(GRAVITY), new MovementSystem(), new CollisionSystem()); final Entity player = world.createEntity(); player.add(new Mass(1f)); |
