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++; } }
public void Initialize() { agxPrimitive = new AgX_Primitive(guid, "Box", position, quatRotation, size, mass, materialName); }
public void Initialize() { agxPrimitive = new AgX_Primitive(guid, shape, position, quatRotation, size, mass, materialName, isStatic, false); }
public void Initialize() { agxPrimitive = new AgX_Primitive(guid, "Box", position, quatRotation, size, mass, "Plastic", false, true); }