Reactive Simulation for Real-Time Obstacle Avoidance