|
|
@ -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"); |
|
|
|