From b01ac95cfc71a17153f48a935fdc1d190a406fe0 Mon Sep 17 00:00:00 2001 From: "rem..om" Date: Sun, 14 Jul 2013 10:01:51 +0000 Subject: [PATCH] Removes the use of the deprecated Box contructor with the mesh origin in HelloNode. also updated the wiki and made the screenshot up to date to what the tutorial produces git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10719 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/test/jme3test/helloworld/HelloNode.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/src/test/jme3test/helloworld/HelloNode.java b/engine/src/test/jme3test/helloworld/HelloNode.java index 65ae12e93..d70632f33 100644 --- a/engine/src/test/jme3test/helloworld/HelloNode.java +++ b/engine/src/test/jme3test/helloworld/HelloNode.java @@ -54,16 +54,18 @@ public class HelloNode extends SimpleApplication { public void simpleInitApp() { /** create a blue box at coordinates (1,-1,1) */ - Box box1 = new Box( new Vector3f(1,-1,1), 1,1,1); + Box box1 = new Box(1,1,1); Geometry blue = new Geometry("Box", box1); + blue.setLocalTranslation(new Vector3f(1,-1,1)); Material mat1 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat1.setColor("Color", ColorRGBA.Blue); blue.setMaterial(mat1); /** create a red box straight above the blue one at (1,3,1) */ - Box box2 = new Box( new Vector3f(1,3,1), 1,1,1); + Box box2 = new Box(1,1,1); Geometry red = new Geometry("Box", box2); + red.setLocalTranslation(new Vector3f(1,3,1)); Material mat2 = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); mat2.setColor("Color", ColorRGBA.Red);