This commit is contained in:
parent
e383d9c1d5
commit
cbd89ddb05
3 changed files with 7 additions and 10 deletions
|
|
@ -5,7 +5,6 @@ import java.util.logging.Logger;
|
|||
|
||||
import sg.env.Environment;
|
||||
|
||||
import com.jme.app.SimpleGame;
|
||||
import com.jme.bounding.BoundingBox;
|
||||
import com.jme.scene.shape.Sphere;
|
||||
import com.jme.scene.state.TextureState;
|
||||
|
|
@ -22,7 +21,7 @@ public class SpaceGame extends SimplePhysicsGame {
|
|||
private Environment environment;
|
||||
|
||||
public static void main(String[] args) {
|
||||
Logger.getLogger( "" ).setLevel( Level.WARNING );
|
||||
Logger.getLogger("").setLevel( Level.WARNING );
|
||||
SpaceGame game = new SpaceGame();
|
||||
game.setConfigShowMode(ConfigShowMode.AlwaysShow);
|
||||
game.start();
|
||||
|
|
@ -60,7 +59,6 @@ public class SpaceGame extends SimplePhysicsGame {
|
|||
ts.setTexture(texture);
|
||||
s.setRenderState(ts);
|
||||
dynamicNode.attachChild(s);
|
||||
|
||||
}
|
||||
|
||||
public void simpleUpdate(){
|
||||
|
|
|
|||
12
src/sg/env/Environment.java
vendored
12
src/sg/env/Environment.java
vendored
|
|
@ -46,12 +46,12 @@ public class Environment extends Node {
|
|||
"sg/data/skybox/advanced/rest.png"),
|
||||
Texture.MinificationFilter.BilinearNearestMipMap,
|
||||
Texture.MagnificationFilter.Bilinear);
|
||||
skybox.setTexture(Skybox.NORTH, north);
|
||||
skybox.setTexture(Skybox.WEST, west);
|
||||
skybox.setTexture(Skybox.SOUTH, south);
|
||||
skybox.setTexture(Skybox.EAST, east);
|
||||
skybox.setTexture(Skybox.UP, up);
|
||||
skybox.setTexture(Skybox.DOWN, down);
|
||||
skybox.setTexture(Skybox.Face.North, north);
|
||||
skybox.setTexture(Skybox.Face.West, west);
|
||||
skybox.setTexture(Skybox.Face.South, south);
|
||||
skybox.setTexture(Skybox.Face.East, east);
|
||||
skybox.setTexture(Skybox.Face.Up, up);
|
||||
skybox.setTexture(Skybox.Face.Down, down);
|
||||
skybox.preloadTextures();
|
||||
skybox.updateRenderState();
|
||||
this.attachChild(skybox);
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package sg.test;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import com.jme.app.SimpleGame;
|
||||
import com.jmex.physics.DynamicPhysicsNode;
|
||||
import com.jmex.physics.StaticPhysicsNode;
|
||||
import com.jmex.physics.geometry.PhysicsBox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue