|
Author |
Topic: Simple solar system (Read 682 times) |
|
JohnG
|
Simple solar system
« on: Oct 3rd, 2003, 5:24pm » |
|
A rather simplified solar-system simulation, a sun and 4 planets, of which one has a single moon and one two moons, which bears a small similarity to our solar system. This is mainly just a test to see if I remembered how push and pop worked, alond with some object-heirachy/recursive stuff. http://www.hardcorepawn.com/solar_system/ Moving the mouse will rotate the system about the sun.
|
|
|
|
Fractal_Mike Guest
|
Re: Simple solar system
« Reply #1 on: Oct 4th, 2003, 3:14pm » |
|
That's nice. I think now my next "project" will be fractal saturn-rings. Perhaps then you could use that for asteroid rings.
|
|
|
|
JohnG
|
Re: Simple solar system
« Reply #2 on: Oct 4th, 2003, 11:54pm » |
|
on Oct 4th, 2003, 3:14pm, Fractal_Mike wrote:That's nice. I think now my next "project" will be fractal saturn-rings. Perhaps then you could use that for asteroid rings. |
| Sounds like an interesting idea, I'd love to see the results
|
|
|
|
Fractal_Mike Guest
|
Re: Simple solar system
« Reply #3 on: Oct 11th, 2003, 7:43pm » |
|
I just tried the Saturnrings and the algorithm is simple, but I would need the natural logarithm as a function. There is only pow(), sqrt(),.. but no ln()
|
|
|
|
Koenie
|
Re: Simple solar system
« Reply #4 on: Oct 11th, 2003, 8:30pm » |
|
You could use Math.ln() from Java... Koenie
|
http://koeniedesign.com
|
|
|
Fractal_Mike Guest
|
Re: Simple solar system
« Reply #5 on: Oct 12th, 2003, 3:05pm » |
|
Thanks, I have almost no experience in Java but I'll try to implement it.
|
|
|
|
|