Multi-axis Motion Design for complex machines