simulate_path function

Simulate a movement trajectory.