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_Hinge(Frame left, Frame right) { this.left = left; this.right = right; type = "Hinge"; joint = new AgX_Joint(guid); //Add joint between top and bottom frame joint.Create_Hinge("Hinge", left.agxFrame, right.agxFrame, leftRangeLimit, rightRangeLimit); joint.AddToSim(); }
public void Create_Hinge(Frame left, Frame right) { this.left = left; this.right = right; type = "Hinge"; agxJoint = new AgX_Joint(guid); //Add joint between top and bottom frame agxJoint.Create_Hinge("Hinge", left.agxFrame, right.agxFrame, lowerRangeLimit, upperRangeLimit); agxJoint.AddtoAssembly(); }
public void Initialize() { agxSensor = new AgX_Sensor(guid, "Plastic", position, scale, 1.0f); lockJoint = new AgX_Joint(guid);//Ikke festet }
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(); }
public void Create_DistanceSensorLock(SensorModule sm, DistanceSensor ds, Vector3 lockPosition) { agxJoint = new AgX_Joint(guid); agxJoint.DistanceSensorLock(sm.agxPrimitive, ds.agxPrimitive, lockPosition); agxJoint.AddtoAssembly(); }
/*-------------------------------------------------Force Sensors:-------------------------------------------------*/ public void Create_ForceSensorLock(SensorModule sm, ForceSensor fs, Vector3 lockPosition) { agxJoint = new AgX_Joint(guid); agxJoint.ForceSensorLock(sm.agxPrimitive, fs.agxSensor, lockPosition); agxJoint.AddtoAssembly(); }