Skip to content

Instantly share code, notes, and snippets.

@jbrains
Created September 11, 2009 02:55
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