Ah, using the "go to x,y" instead of directly "set"-ing the balls position makes the motion smooth.
Thanks for the fixup!
Download this project!
Download the one sprite and 4 scripts of "Bouncy 1.1" and open it in Scratch
Project Notes
This is based on Bouncy by Skewb. Skewb did all the hard work. I just changed a couple of things to make the track smoother, and for fun to have the track change color each time you re-drop the ball.
Simple bouncing and rolling ball physics using an Euler integrator.
Adjust the gravity force and "friction" via the sliders.
Press the spacebar to re-drop the ball without resetting the sliders.
Press the 'T' key to leave a trace as the ball bounces, press the 'T' key again to turn off the trace.
Comments
You need to be logged in to post comments
Add a Comment
cool
cool
reply to gne - Yes I do work at MIT
Do you work at MIT?
great project! i'll definitely let you know how the classes go in the forum. the Scratch classes at the library will start in October!
hehe...i made the ball float away!
hello
Ah, using the "go to x,y" instead of directly "set"-ing the balls position makes the motion smooth. Thanks for the fixup!