Reputation: 87
So I am making a game that's like slime volleyball. Basically, my two main players, or objects, are half circles on either side, I have a net in the middle, and a ball. My problem is I can't figure out how to make the ball bounce of a semi circle so that it follows both the angle and direction. I've tried looking it up, but all of them are either about walls or rectangles, not bouncing off a circular object. Any code or ideas would help.
Upvotes: 3
Views: 861
Reputation: 4406
"Take a semicircle, point it upwards, shine parallel rays of light straight down at it, and let those rays reflect off it. The envelope of the reflected rays will be half of a nephroid":
Upvotes: 1