ScratchData LogoScratchData
Back to EdnaC's profile

BouncingBall

EDEdnaC•Created February 18, 2008
BouncingBall
5
3
260 views
View on Scratch

Description

Response to a question in the forums about bouncing off of "random" surfaces. After a miserable failure at slope detection, I gained some inspiration from Jens: http://scratch.mit.edu/projects/Jens/98418 Also, many thanks to Canthiar for his tutorial on "reflection" using Vector algebra: http://scratch.mit.edu/projects/Canthiar/41976 If you are ever wondering "why do I need to learn this" when presented with Vectors, the answer is: You don't, unless you are interested in math, science, engineering, optics, cosmology, etc..., or programming video games. Vectors are a very powerful tool, and once you understand them, they prove to be a simple way to solve a daunting problem. This version adds "spin": This part of the project is a fudge, I've added some damping, and used "fudge factors" to estimate how much the spin/impact should effect velocity. Playing around with the fudge factors got the ball to the point where it looks pretty realistic, but this isn't accurate physics. Remove anything to that references "Tangent" or "Spin" and you can get back to the real world (with drag neglected). Damping could be removed as well, if spin is taken out. Otherwise, you'll see the "Flubber Effect"...

Project Details

Project ID102490
CreatedFebruary 18, 2008
Last ModifiedDecember 3, 2013
SharedFebruary 18, 2008
Visibilityvisible
CommentsAllowed