Example #1
0
 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();
 }
Example #2
0
        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();
        }
Example #3
0
        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();
        }
Example #4
0
 public void Initialize()
 {
     agxSensor = new AgX_Sensor(guid, "Plastic", position, scale, 1.0f);
     lockJoint = new AgX_Joint(guid);//Ikke festet
 }
Example #5
0
 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();
 }
Example #6
0
 //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();
 }
Example #7
0
 public void Create_DistanceSensorLock(SensorModule sm, DistanceSensor ds, Vector3 lockPosition)
 {
     agxJoint = new AgX_Joint(guid);
     agxJoint.DistanceSensorLock(sm.agxPrimitive, ds.agxPrimitive, lockPosition);
     agxJoint.AddtoAssembly();
 }
Example #8
0
 /*-------------------------------------------------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();
 }