Press escape to exit fullscreen

{{sketch.instructions}}

CC {{sketch.licenseObject.short}}

Archived Sketch

This sketch is created with an older version of Processing,
and doesn't work on browsers anymore.

View Source Code

Capture Screenshot

orbits

{{$t('general.by')}}
This program simulates the orbit of a satellite around a larger body of mass. The satellite can be controlled by firing particles of mass, which via newton's third law act like a rocket, causing the satellite to accelerate. There is background music, which you can cause to play by un-commenting the lines marked "audio". The music is the theme from the game FTL. All code was written by me, except for the code to play background music, which I got from a minim example called "PlayAFile". The video that inspired this project was as follows: http://tinyurl.com/ljq8f4v Controls are in code.
We recovered an unsaved version of this sketch. Please review your changes below.

As a Plus+ Member feature, this source code is hidden by the owner.

  • {{co.title}}
    {{$t('sketch.mode-pjs')}} {{$t('general.learnMore')}}
    Select mode or a template
    {{liveCodeLink}}
    • {{l.url.substr(l.url.lastIndexOf('/') + 1)}}
    {{$t('sketch.layoutDescription')}}

    {{k.category}}
    {{k.label}}
    {{k.description}}

    {{$t('sketch.seeMoreShortcuts')}}

    Versions are only kept for 7 days.
    Join Plus+ to keep versions indefinitely!

    {{$t('general.joinPlus')}}


    {{$t('sketch.versionsSummarized')}}