Search found 2 matches
- Wed Mar 16, 2016 7:01 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 453473
Re: "Questions that don't deserve their own thread" thread
Hi! I'm currently getting into programming games again and I'm trying to make a breakout clone. I'm having trouble with calculating the reflecting angle when the ball bounces on a surface. ... I've searched on google but the answers I've gotten seems like overkill. calculating velocity components w...
- Fri Mar 11, 2016 8:51 pm
- Forum: Support and Development
- Topic: "Questions that don't deserve their own thread" thread
- Replies: 905
- Views: 453473
Re: "Questions that don't deserve their own thread" thread
Hi! I'm currently getting into programming games again and I'm trying to make a breakout clone. I'm having trouble with calculating the reflecting angle when the ball bounces on a surface. What I'm currently doing is: ball.rads = ball.angle * math.pi / 180 ball.x = ball.x + math.cos(ball.rads)*(ball...