Package com.graphics

Examples of com.graphics.Box


  }

  public void build(){   

    boarderBox = new Box(this.cam,this.d,this.p,this.r,this.color);
    boarderBox.setTransparent(true);
    boarderBox.only_lines = true;
   
    for(int i = 0;i<SHAPE_NUM-1;i++){
View Full Code Here


  }

  @Override
  public void build() {
    boxes[0] = new Box(cam, d, p, r, color);
   
//    for(int i = 0;i<SHAPE_NUM/8;i++){
     
//    }
    shape[0] = new Box(cam, new Vector(3,3,d.z-3), p.add(new Vector(d.x,d.y,0)), r, color);
    shape[1] = new Box(cam, new Vector(3,3,d.z-3), p.add(new Vector(d.x,-d.y,0)), r, color);
    shape[2] = new Box(cam, new Vector(3,3,d.z-3), p.add(new Vector(-d.x,d.y,0)), r, color);
    shape[3] = new Box(cam, new Vector(3,3,d.z-3), p.add(new Vector(-d.x,-d.y,0)), r, color);
    shape[4] = new Box(cam, new Vector(d.x+3,3,3), p.add(new Vector(0,d.y,d.z)), r, color);
    shape[5] = new Box(cam, new Vector(d.x+3,3,3), p.add(new Vector(0,d.y,-d.z)), r, color);
    shape[6] = new Box(cam, new Vector(d.x+3,3,3), p.add(new Vector(0,-d.y,d.z)), r, color);
    shape[7] = new Box(cam, new Vector(d.x+3,3,3), p.add(new Vector(0,-d.y,-d.z)), r, color);
    shape[8= new Box(cam, new Vector(3,d.y-3,3), p.add(new Vector(d.x,0,d.z)), r, color);
    shape[9= new Box(cam, new Vector(3,d.y-3,3), p.add(new Vector(d.x,0,-d.z)), r, color);
    shape[10] = new Box(cam, new Vector(3,d.y-3,3), p.add(new Vector(-d.x,0,d.z)), r, color);
    shape[11] = new Box(cam, new Vector(3,d.y-3,3), p.add(new Vector(-d.x,0,-d.z)), r, color);
   
    for(Shape s:shape)
      World.shapes.add(s);
  }
View Full Code Here

TOP

Related Classes of com.graphics.Box

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.