I'm trying to create a game exactly like circle pong. I have created a paddle that moves along the circumference of the circle. Note that the paddle is arc'd shaped. I'm wondering how would i detect collision between the ball and the paddle. To get a better understanding check this out: http://gyazo.com/7bac8acdf0faf66005015d496498ca33 The ball will be inside the circle and reflect off when collides with the paddle. Thanks in advance!
Asked
Active
Viewed 275 times
0
-
You could use something like [this](http://stackoverflow.com/questions/20927189/detecting-collision-of-two-sprites-that-can-rotate/20928531#20928531) which uses an `Area` to detect what "part" of the two shapes are colliding. – MadProgrammer May 03 '15 at 03:08
1 Answers
0
a) Try using Arc2D.contains() and convert the circle to a Rectangle (I would avoid it if possible)
b) Use the Method described here.