I have many circles in my code that follow my mouse.
Each circle is created when a mouse is clicked.
The problem is that the circles keep ending up in the same place but I want them to bounce off of each other.
At the moment, my code for that looks something like this:
Any advice on how to make this (even conceptually) work?
Thanks!
public void bounce(){
java.util.List<Circle> circleList = getWorld().getObjects(Circle.class);
if (//something to do with isTouching?){
}
}
}
