Distributed motion control