Skip to content

Instantly share code, notes, and snippets.

@jbrains
Created September 11, 2009 02:55
Show Gist options
  • Save jbrains/185041 to your computer and use it in GitHub Desktop.
Save jbrains/185041 to your computer and use it in GitHub Desktop.
DetachmentSystem acts as AccelerationObserver {
needs a parachute
needs an altimeter // NEW!
handle_acceleration_report(acceleration) {}
if (acceleration <= -50.ms2 and altimeter.altitude() < 5.m) {
parachute.detach()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment