Package nexus.model.renderable

Examples of nexus.model.renderable.Solid


        float z = (float) this.z * Chunk.WIDTH + j;
        float y = (int) dilation.y * ((Perlin.perlin2D(x * dilation.x + BIG_NUMBER, z * dilation.z + BIG_NUMBER) + 1) / 2) + 1;

        for (int k = 0; k < HEIGHT; k++) {
          if (k <= y) {
            this.blocks[i][j][k] = new Solid(new Vector3(x, (float) k, z), 1.0f, this.colorist);
          } else {
            this.blocks[i][j][k] = new Air(new Vector3(x, (float) k, z), 1.0f)
          }
        }
      }
View Full Code Here


        if (Mouse.isButtonDown(0)) {
          model.chunks.setBlock(new Air(model.chunks.selected, 1.0f));
        }
       
        if (Mouse.isButtonDown(1)) {
          Block newBlock = new Solid(model.chunks.getBlock(model.chunks.selected).a.add(new Vector3(0f, 1f, 0f)), 1.0f, new Greyscale(16.0f, 0.0f));
          model.chunks.setBlock(newBlock);
        }
       
        break;
      }
View Full Code Here

TOP

Related Classes of nexus.model.renderable.Solid

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.