@Override protected void collisions(IA ia) { // System.out.println("Collision avec " + ia); ia.onCollision(sbg); if (!ia.isVisited() && Globals.node.equals(ia.getNode())) { ia.setVisited(true); } }
@Override public void update(int delta) { super.update(delta); // Makes him jump and fall again and again if (!jumped && onGround) { body.addForce(new Vector2f(0, -1000)); } }