コード例 #1
0
        public void Initialize()
        {
            agxPrimitive = new AgX_Primitive(guid, "Box", position, quatRotation, size, mass, materialName, false, true);
            if (forceSensor != null)
            {
                forceSensor.Initialize();
                forceSensorLock.Create_ForceSensorLock(this, forceSensor, forceLockPosition);
                forceSensor.fs_Joint = forceSensorLock.agxJoint;//Sets the sensor's lock (need for calculating forces)
            }

            //distance
            int count = 0;

            foreach (DistanceSensor ds in distanceSensors)
            {
                ds.Initialize();

                distanceSensorLocks[count].Create_DistanceSensorLock(this, ds, distanceLockPosition);
                count++;
            }
        }
コード例 #2
0
ファイル: Simulation_Core.cs プロジェクト: norbish/dllFiles
 public void Initialize()
 {
     agxPrimitive = new AgX_Primitive(guid, "Box", position, quatRotation, size, mass, materialName);
 }
コード例 #3
0
 public void Initialize()
 {
     agxPrimitive = new AgX_Primitive(guid, shape, position, quatRotation, size, mass, materialName, isStatic, false);
 }
コード例 #4
0
 public void Initialize()
 {
     agxPrimitive = new AgX_Primitive(guid, "Box", position, quatRotation, size, mass, "Plastic", false, true);
 }