Example #1
0
 public static void createSinglePlayerArea(Node node) {
   node.setLocalTranslation(0, 100, 0);
   CG.createPhyBox(
       node,
       "floor",
       T.v3f(50, 0.1f, 50),
       T.v3f(0, -1, 0),
       T.getMaterialPath("lava_rock"),
       T.v2f(5, 5));
   CG.createPhyBox(
       node,
       "wall",
       T.v3f(30, 20, 0.1f),
       T.v3f(0, 20, -60),
       T.getMaterialPath("BC_Tex"),
       T.v2f(15, 10));
   CG.createPhyBox(node, "savior", T.v3f(10, 0.1f, 10), T.v3f(0, -101, 0), ColorRGBA.Yellow);
 }
Example #2
0
 public static void createGeometry(Node node, GeometryData d) {
   if (d.getType().equals("box")) {
     if (d.getPhy()) {
       CG.createPhyBox(node, d);
     } else {
       CG.createBox(node, d);
     }
   }
 }