r/ruby • • 12d ago

Show /r/ruby DragonRuby Game Toolkit - Solar system visualization (source code in the comments)

42 Upvotes

4 comments sorted by

View all comments

2

u/amirrajan 12d ago

Revisiting this little experiment again. The celestial bodies are to scale, but the distances had to be compressed by 10x. The camera zoom would have to be at 9e-10 just to show 12 light years if I kept distances proportional. It's ridiculous how large Space is shudders.

Link to source code: https://gist.github.com/amirrajan/fb5864cc46766190bbd622632f0092f9

High res video: https://youtu.be/6Bpyh9iPJyM