public RobotPart() { debugCube = new CubeModel(); debugCube.SetRenderMode(RenderMode.WIRE); debugCube.SetWireColor(1.0f, 1.0f, 1.0f); debug = true; }
public MissilesWeapon() { inCylinderRadius = 0.1f; inCylinderHeight = 1.0f; inCylinder = new CylinderModel(inCylinderRadius, inCylinderHeight); inCylinder.SetColor(0.4f, 0.5f, 0.6f); outCylinderRadius = 0.15f; outCylinderHeight = 0.3f; outCylinder = new CylinderModel(outCylinderRadius, outCylinderHeight); outCylinder.SetColor(0.0f, 0.7f, 0.6f); middleBox = new CubeModel(); middleBox.SetColor(0.1f, 0.3f, 0.3f); frame = new CubeModel(); frame.SetColor(0.1f, 1.0f, 0.0f); SetHeight(0.75f); material = new Material(Material.MaterialType.SHINY_STEEL); inCylinder.AssignMaterial(material); outCylinder.AssignMaterial(material); middleBox.AssignMaterial(material); frame.AssignMaterial(material); model = new OBJModel(Game.resourcePath + "/Missile/Missile.obj"); }
public HeavyRubblePile() { PosX = PosY = 0; cube = new CubeModel(); cube.SetColor(0.64f, 0.64f, 0.67f); hemiM = new HemisphereModel(1.0f); hemiM.LatitudinalSlices = 10; hemiM.LongitudinalSlices = 10; cube.SetColor(0.64f, 0.64f, 0.67f); material = new Material(Material.MaterialType.ROCK_DIFFUSE); cube.AssignMaterial(material); hemiM.AssignMaterial(material); }
static TeamNumber() { mcComponent = new CubeModel(); mcComponent.SetColor(1.0f, 1.0f, 1.0f); }