I need to have collision detection in the paddle class as well as in the orb class. I can't get the paddles to detect the orbs and reverse their direction. This has to be done in the paddle class not in the orb class. In my paddle class I have:
public void handlePaddleCollision()
{
Actor orb = getOneIntersectingObject(Orb.class)
if (orb != null) {
reverseY
}
}
I don't think the reverseY is right, but I don't know what to put to make the orb reverse its direction. Right now it just passes through the paddles. Any help??
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)