Distributed Motion Synchronization and Human-in-the-Loop Simulation