Home | History | Annotate | Download | only in batching

Lines Matching defs:box

20 import com.jme3.scene.shape.Box;
142 Geometry box = new Geometry("Box" + i, new Box(Vector3f.ZERO, 1, 1, 1));
143 box.setLocalTranslation(new Vector3f(xPosition.get(xPosition.size() - 1),
146 batchNode.attachChild(box);
148 box.setMaterial(mat1);
151 box.setMaterial(mat2);
154 box.setMaterial(mat3);
157 box.setMaterial(mat4);
315 Spatial box;
336 box = batchNode.getChild("Box" + random);
337 if (box != null) {
338 Vector3f v = box.getLocalTranslation();
339 box.setLocalTranslation(v.x + FastMath.sin(time * mult1) * 20, v.y + (FastMath.sin(time * mult1) * FastMath.cos(time * mult1) * 20), v.z + FastMath.cos(time * mult2) * 20);