/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.jme3.app.SimpleApplication * com.jme3.material.Material * com.jme3.math.ColorRGBA * com.jme3.math.Vector3f * com.jme3.scene.Geometry * com.jme3.scene.Mesh * com.jme3.scene.Node * com.jme3.scene.Spatial * com.jme3.scene.shape.Box */ package jme3.hello; import com.jme3.app.SimpleApplication; import com.jme3.material.Material; import com.jme3.math.ColorRGBA; import com.jme3.math.Vector3f; import com.jme3.scene.Geometry; import com.jme3.scene.Mesh; import com.jme3.scene.Node; import com.jme3.scene.Spatial; import com.jme3.scene.shape.Box; public class HelloWorld extends SimpleApplication { public static void main(String[] args) { HelloWorld app = new HelloWorld(); app.start(); } public void simpleInitApp() { Box box1 = new Box(Vector3f.ZERO, 1.0f, 1.0f, 1.0f); Geometry blue = new Geometry("Box", (Mesh)box1); Material mat1 = new Material(this.assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat1.setColor("Color", ColorRGBA.Blue); blue.setMaterial(mat1); blue.move(1.0f, -1.0f, 1.0f); Box box2 = new Box(Vector3f.ZERO, 1.0f, 1.0f, 1.0f); Geometry red = new Geometry("Box", (Mesh)box2); Material mat2 = new Material(this.assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat2.setColor("Color", ColorRGBA.Red); red.setMaterial(mat2); red.move(1.0f, 3.0f, 4.0f); Node pivot = new Node("pivot"); this.rootNode.attachChild((Spatial)pivot); pivot.attachChild((Spatial)blue); pivot.attachChild((Spatial)red); } }