Its amazing which great animation some gravity can produce.
If managed to make some astroids and also I reminded my self of the great infention of the List. A list is actually like one Astroid, just with more than just one position, rotation, velocity and what ever you want. All you need to know a spezific value is the list name and the number of the astroid.
Which is a great asset if you have to handle all the 40 astroids I've used in my last build.
But 40 astroids alown are not that spectecular like they may sound. It all gain a lot more if you add newton.
I started with my good old Motion.Straight code, which creates a vector pointing exactly ther where you want it to point to, great if you want the let something chase something else (as long as ther is not wall, or any other barrier). I just took that code and put the gravity there where the speed is supposed to be and, bingo, ther perfect acceloration for a astroid!
But to which place do you send such a astroid?
I don't know where you would send a astroid, but my target was clear, earth!
I spend a whole afternoon whaching 20 astroids crashing down on the blue jewel. And it gets much better is you treat acceloration like acceloration and not just like speen, and if you add all the others planets.
I've already have got Mercury, Venus, Earth, Luna (the Moon) and Mars hanging around with my test ship. But now that I've added the astroids, they suddley got a point. Seeing how Luna accerlorates a astroi, it orbits earth a moment, Luna gets it out of that orbit and sends it on his long way to venus (around 0.5 sec aways from earth).
But I don't know why, but Mars don't want to play with the other children, ... maybe its because he's not there.
Somehow I managed to get rid of the red planet (Mercury acctualy is more red, at least on the pics I've seen), it somewhere was lost on the road to the PlanetList I've made to make the grafity thing easyer. (You have to circle up to 40 astroids through 3 planet- and one moon-grafitations till you get the final acceloration from all of them)
The next step would be to spend more work on the Orbit-Tool I plan, which would let them orbit a planet, physicaly correct, but with out disturbing stuff like grafitation.
I'm lovin' it. :)
Greg the Mad
Thursday, January 10, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment