This might just be a stupid mistake by me, but I cant for the love of god figure out why it does not work.
In the following code, I made it so, if my "Bullet" object, touches either the Edge or the "Ball" class, it should get removed, but for some reason it just stays?
Help is appreciated!
public void remove() { if (isAtEdge()) { getWorld().removeObject(this); } else if (isTouching(ball.class)) { getWorld().removeObject(this); } remove();