Haven't finished function ConnectAndDynamicJointGeneration