About bouncing balls
MarkOnTheIron
Member Posts: 1,447
I've created a simple screen with walls on all sides and a ball that go on forever bouncing on the walls.
The only problem is that after some bounce, whatever the starting angle, the ball start to bounce orizontally or vertically. This behavior can be noticed in codemonkey's pool game and other similar projects.
Is there a way to fix it?
The only problem is that after some bounce, whatever the starting angle, the ball start to bounce orizontally or vertically. This behavior can be noticed in codemonkey's pool game and other similar projects.
Is there a way to fix it?
Comments
It's possible to use a math expression that calculate the angle at which the ball should bounce and then add it in a "bounce or collide" rule?
I have add a watchdog: after 10 bounce without touch the bar the direction of ball change