package entities; public class Force { private Acceleration acceleration; private Pair<Double> value = new Pair<>(0.0d, 0.0d); public Force(Acceleration acceleration) { this.acceleration = acceleration; } public void gravity(double y) { this.value = new Pair(0.0, y); acceleration.updateByForce(value); } public Pair<Double> getValue() { return value; } }