Removes the use of the deprecated Box contructor with the mesh origin in HelloLoop. also updated the wiki
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10717 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
e530cf9ad6
commit
c576d47c15
@ -35,7 +35,6 @@ package jme3test.helloworld;
|
|||||||
import com.jme3.app.SimpleApplication;
|
import com.jme3.app.SimpleApplication;
|
||||||
import com.jme3.material.Material;
|
import com.jme3.material.Material;
|
||||||
import com.jme3.math.ColorRGBA;
|
import com.jme3.math.ColorRGBA;
|
||||||
import com.jme3.math.Vector3f;
|
|
||||||
import com.jme3.scene.Geometry;
|
import com.jme3.scene.Geometry;
|
||||||
import com.jme3.scene.shape.Box;
|
import com.jme3.scene.shape.Box;
|
||||||
|
|
||||||
@ -54,7 +53,7 @@ public class HelloLoop extends SimpleApplication {
|
|||||||
@Override
|
@Override
|
||||||
public void simpleInitApp() {
|
public void simpleInitApp() {
|
||||||
/** this blue box is our player character */
|
/** this blue box is our player character */
|
||||||
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
|
Box b = new Box(1, 1, 1);
|
||||||
player = new Geometry("blue cube", b);
|
player = new Geometry("blue cube", b);
|
||||||
Material mat = new Material(assetManager,
|
Material mat = new Material(assetManager,
|
||||||
"Common/MatDefs/Misc/Unshaded.j3md");
|
"Common/MatDefs/Misc/Unshaded.j3md");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user