ScratchData LogoScratchData
Back to flipperz9001's profile

9 BouncingMusicBalls

FLflipperz9001•Created May 3, 2009
9 BouncingMusicBalls
0
0
19 views
View on Scratch

Description

Bouncing Balls with Soundcolorsis a much enlarged  version of:http://scratch.mit.edu/projects/Canthiar/7369by Canthiar You now have colors an sounds and many parameters to play with:Up / Down     = -/+ GravityLeft / Right     = -/+ Emitter SpeedB / A     = -/+ more Balls1     = switch Edges2     = switch Turn Effect3    = switch Random4    = switch Drawing5    = switch SoundSpace    = start Balls againDragDrop Collision ObjectsDragDrop BallsDragDrop EmitterTurn Emitter by pulling it's tipH    = Help (english)G    = Help (german)Chantiers original description:You can move the object emitter around with the mouse and change the direction by clicking on the pointed end.This is what I consider a production version since I've inlined a few things. I have a more academic version that is a little easier to read.  The whole thing is also dumbed down a little to make the math a little easier.How it works:When a ball encounters a collision object it uses the [ point towards[ Collision ] ] command block and then uses sin and cos to calculate a colliion normal.  That normal is used to calculate a resulting velocity perpendicular to the surface and velocity tangent to the surface.  Friction and restitution are applied to make the ball bounce.

Project Details

Project ID512241
CreatedMay 3, 2009
Last ModifiedMay 3, 2009
SharedMay 3, 2009
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root