Search tutorials
Simulating Gravity
Here are the steps I took to make this.
1. I created a sun movieclip and an earth movieclip and placed them on the stage with instance names ball1 and ball2 respectively.
2. I used FlashGuru's function that determines the distance between two movieclips and returns a distance object (with a slight modification).
3. Using the info in the distance object I determined what the velocities and accelerations of the bodies.
| » Level Intermediate |
|
Added: 2002-04-11 Rating: 6 Votes: 80 |
| » Author |
| Engineering student who lieks flash. |
| » Download |
| Download the files used in this tutorial. |
| Download (4 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!