public static object Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector_TO_Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector(object transformFrom) { global::Microsoft.Robotics.PhysicalModel.EntityJointConnector target = new global::Microsoft.Robotics.PhysicalModel.EntityJointConnector(); global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector from = ((global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector)(transformFrom)); target.EntityName = from.EntityName; target.JointNormal = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.JointNormal))); target.JointAxis = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.JointAxis))); target.JointConnectPoint = ((global::Microsoft.Robotics.PhysicalModel.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector3(from.JointConnectPoint))); return target; }
public static object Microsoft_Robotics_PhysicalModel_Proxy_JointProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointProperties(object transformFrom) { global::Microsoft.Robotics.PhysicalModel.JointProperties target = new global::Microsoft.Robotics.PhysicalModel.JointProperties(); global::Microsoft.Robotics.PhysicalModel.Proxy.JointProperties from = ((global::Microsoft.Robotics.PhysicalModel.Proxy.JointProperties)(transformFrom)); target.Name = from.Name; if ((from.Connectors != null)) { int count = from.Connectors.Length; global::Microsoft.Robotics.PhysicalModel.EntityJointConnector[] tmp = new global::Microsoft.Robotics.PhysicalModel.EntityJointConnector[count]; for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.PhysicalModel.EntityJointConnector tmp0 = default(global::Microsoft.Robotics.PhysicalModel.EntityJointConnector); if ((from.Connectors[index] != null)) { tmp0 = ((global::Microsoft.Robotics.PhysicalModel.EntityJointConnector)(Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector_TO_Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector(from.Connectors[index]))); } else { tmp0 = null; } tmp[index] = tmp0; } target.Connectors = tmp; } else { target.Connectors = null; } target.MaximumForce = from.MaximumForce; target.MaximumTorque = from.MaximumTorque; target.EnableCollisions = from.EnableCollisions; if ((from.Projection != null)) { target.Projection = ((global::Microsoft.Robotics.PhysicalModel.JointProjectionProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointProjectionProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointProjectionProperties(from.Projection))); } else { target.Projection = null; } if ((from.Linear != null)) { target.Linear = ((global::Microsoft.Robotics.PhysicalModel.JointLinearProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointLinearProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointLinearProperties(from.Linear))); } else { target.Linear = null; } if ((from.Angular != null)) { target.Angular = ((global::Microsoft.Robotics.PhysicalModel.JointAngularProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointAngularProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointAngularProperties(from.Angular))); } else { target.Angular = null; } return target; }