This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-16 10:53:02

Swinek
Scratcher
Registered: 2009-11-16
Posts: 1

Need help with bounce angle!

Hey help me out, please. I need the ball to bounce of all edges and objects under ideal angle (that means: fall angle = reflection angle). How to do it? Thx beforehand!

Offline

 

#2 2009-11-16 19:21:06

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Need help with bounce angle!

That is very hard to do unless you know all the angles of both objects. I have a game which a ball bounces of the walls. It is about 75% accurate and the ball never gets stuck in the wall. here is the link download it to find out how to do it on your own game. http://scratch.mit.edu/projects/what-the/714142. It involves using a lot of if's and to get it 100% accurate you would need an if for eeach direction (so 360 if statements)


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

Board footer