public static object Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector_TO_Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector0(object transformFrom) { global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector target = new global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector(); global::Microsoft.Robotics.PhysicalModel.EntityJointConnector from = ((global::Microsoft.Robotics.PhysicalModel.EntityJointConnector)(transformFrom)); target.EntityName = from.EntityName; global::Microsoft.Robotics.PhysicalModel.Vector3 tmp = from.JointNormal; target.JointNormal = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp))); global::Microsoft.Robotics.PhysicalModel.Vector3 tmp0 = from.JointAxis; target.JointAxis = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp0))); global::Microsoft.Robotics.PhysicalModel.Vector3 tmp1 = from.JointConnectPoint; target.JointConnectPoint = ((global::Microsoft.Robotics.PhysicalModel.Proxy.Vector3)(Microsoft_Robotics_PhysicalModel_Proxy_Vector3_TO_Microsoft_Robotics_PhysicalModel_Proxy_Vector30(tmp1))); return target; }
public static object Microsoft_Robotics_PhysicalModel_Proxy_JointProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointProperties0(object transformFrom) { global::Microsoft.Robotics.PhysicalModel.Proxy.JointProperties target = new global::Microsoft.Robotics.PhysicalModel.Proxy.JointProperties(); global::Microsoft.Robotics.PhysicalModel.JointProperties from = ((global::Microsoft.Robotics.PhysicalModel.JointProperties)(transformFrom)); target.Name = from.Name; Microsoft.Robotics.PhysicalModel.EntityJointConnector[] tmp = from.Connectors; if ((tmp != null)) { int count = tmp.Length; global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector[] tmp0 = new global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector[count]; for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector tmp1 = default(global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector); global::Microsoft.Robotics.PhysicalModel.EntityJointConnector tmp2 = tmp[index]; if ((tmp2 != null)) { tmp1 = ((global::Microsoft.Robotics.PhysicalModel.Proxy.EntityJointConnector)(Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector_TO_Microsoft_Robotics_PhysicalModel_Proxy_EntityJointConnector0(tmp2))); } tmp0[index] = tmp1; } target.Connectors = tmp0; } target.MaximumForce = from.MaximumForce; target.MaximumTorque = from.MaximumTorque; target.EnableCollisions = from.EnableCollisions; global::Microsoft.Robotics.PhysicalModel.JointProjectionProperties tmp3 = from.Projection; if ((tmp3 != null)) { target.Projection = ((global::Microsoft.Robotics.PhysicalModel.Proxy.JointProjectionProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointProjectionProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointProjectionProperties0(tmp3))); } global::Microsoft.Robotics.PhysicalModel.JointLinearProperties tmp4 = from.Linear; if ((tmp4 != null)) { target.Linear = ((global::Microsoft.Robotics.PhysicalModel.Proxy.JointLinearProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointLinearProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointLinearProperties0(tmp4))); } global::Microsoft.Robotics.PhysicalModel.JointAngularProperties tmp5 = from.Angular; if ((tmp5 != null)) { target.Angular = ((global::Microsoft.Robotics.PhysicalModel.Proxy.JointAngularProperties)(Microsoft_Robotics_PhysicalModel_Proxy_JointAngularProperties_TO_Microsoft_Robotics_PhysicalModel_Proxy_JointAngularProperties0(tmp5))); } return target; }