/** * Calculates the point where given PhysicsEntity will land. * * @param e the physics entity which trajectory should be calculated * @return landing poisition */ public static Point3D calculateLanding(PhysicsEntity e) { int time = calculateLandingTime(e); // double t2 = -e.getZmom() - D; int x = e.getX() + e.getXmom() * time; int y = e.getY() + e.getYmom() * time; return new Point3D(x, y, 0); }