Newer
Older
JumpingGame / src / Force.java
import java.util.*;

public class Force {
	private Acceleration acceleration;
	private Vector2 force;

	public Force(Acceleration acceleration) {
		this.acceleration = acceleration;
	}

	public void gravity(double y) {
		this.force.setX(y);
		acceleration.updateForce(force);
	}

	public Vector2 getForce() {
		return force;
	}
}