public void Create_Lock(Frame left, Frame right) { this.left = left; this.right = right; type = "Lock"; joint = new AgX_Joint(guid); joint.Create_Lock("Lock", left.agxFrame, right.agxFrame); joint.AddToSim(); }
public void Create_SensorModuleLock(Sensor_Module s_mod, Frame left)//sensor placed first, left frame of right module { joint = new AgX_Joint(guid); joint.Create_Lock("Lock", s_mod.agxPrimitive, left.agxFrame);//FIX IN AGX INTERFACE joint.AddToSim(); }
//Creates an AgX joint that locks a frame and a sensor module together (agxObjects can not be referenced because references are not saved to this joint object). public void Create_SensorModuleLock(Frame right, Sensor_Module s_mod)//sensor placed last, right frame of left module { joint = new AgX_Joint(guid); joint.Create_Lock("Lock", right.agxFrame, s_mod.agxPrimitive);//FIX IN AGX INTERFACE joint.AddToSim(); }