|
@@ -51,7 +51,7 @@ public class HelloJME3 extends SimpleApplication {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void simpleInitApp() {
|
|
public void simpleInitApp() {
|
|
- Box b = new Box(Vector3f.ZERO, 1, 1, 1); // create cube shape at the origin
|
|
|
|
|
|
+ Box b = new Box(1, 1, 1); // create cube shape
|
|
Geometry geom = new Geometry("Box", b); // create cube geometry from the shape
|
|
Geometry geom = new Geometry("Box", b); // create cube geometry from the shape
|
|
Material mat = new Material(assetManager,
|
|
Material mat = new Material(assetManager,
|
|
"Common/MatDefs/Misc/Unshaded.j3md"); // create a simple material
|
|
"Common/MatDefs/Misc/Unshaded.j3md"); // create a simple material
|