ScratchData LogoScratchData
Back to Zro716's profile

Galaxy

ZRZro716•Created February 4, 2013
Galaxy
28
7
391 views
View on Scratch

Instructions

Click and drag the big star to alter the elliptical orbits of the little stars. Just a little movement will make a big difference. Set the number of stars you want (default 50) and reclick green flag. See if you can get the stars to orbit like a real galaxy.

Description

Uses the cloning feature, of course. Very nifty how this works: Point towards Big Star Change Xvector by sin (Direction) Change Yvector by cos (Direction) Change x by Xvector Change y by Yvector Z-vector enables gravitational pull (smaller stars slowly get closer to big star)

Project Details

Project ID10035476
CreatedFebruary 4, 2013
Last ModifiedFebruary 4, 2013
SharedFebruary 5, 2013
Visibilityvisible
CommentsAllowed