Real-time motion planning algorithm for dynamic flight simulators