As I tried to make a Arkanoid game I stumbled upon a problem.
I tried to check what the X is of actor brick with the following line of code.
The game stops working and doesn't show brick.getX() in the terminal window
public void hit()
{
Actor brick = getOneIntersectingObject(brick.class);
if(brick != null)
{
System.out.println("We got brick!");
getWorld().removeObject(brick);
System.out.println(brick.getX());
}
