}
private int calcJumpX() {
// y = -1 * fence.height / fence.width * (x - (frame.width - fence.width) / 2) + frame.height
World world = getWorld();
int fw = world.getWidth();
int fh = world.getHeight();
Fence fence = world.findFirstObject(Fence.class);
int w = fence.getWidth();
int h = fence.getHeight();
return -1 * (getY() - fh) * w / h + (fw - w) / 2;
}