예제 #1
0
 /** @param name */
 public GeoMap(String name, int worldSize) {
   setCollisionFlags((short) (CollisionIntention.ALL.getId() << 8));
   for (int x = 0; x < worldSize; x += 256) {
     for (int y = 0; y < worldSize; y += 256) {
       Node geoNode = new Node("");
       geoNode.setCollisionFlags((short) (CollisionIntention.ALL.getId() << 8));
       tmpBox.add(new BoundingBox(new Vector3f(x, y, 0), new Vector3f(x + 256, y + 256, 4000)));
       super.attachChild(geoNode);
     }
   }
 }