Skip to content

Instantly share code, notes, and snippets.

@jbrains

jbrains/gist:185041

Created Sep 11, 2009
Embed
What would you like to do?
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