Calculate trajectory of a pinball