I have some bodies around the screen(Ball[] balls
), and I would like to delete them when user touches them.
Also, I have an Image
as userData of the bodies.
I dont want to make a function to all Image
, because the balls have to be deleted in an order.
What is the best way to detect if a body is touch?