浏览代码

Remove a weird line of code from TestHoveringTank

shadowislord 11 年之前
父节点
当前提交
13f2fbd244
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      jme3-examples/src/main/java/jme3test/bullet/TestHoveringTank.java

+ 1 - 3
jme3-examples/src/main/java/jme3test/bullet/TestHoveringTank.java

@@ -84,8 +84,6 @@ public class TestHoveringTank extends SimpleApplication implements AnalogListene
 
     public static void main(String[] args) {
         TestHoveringTank app = new TestHoveringTank();
-        AppSettings settings = new AppSettings(true);
-        settings.setRenderer(AppSettings.LWJGL_OPENGL3);
         app.start();
     }
 
@@ -145,7 +143,7 @@ public class TestHoveringTank extends SimpleApplication implements AnalogListene
         spaceCraft = assetManager.loadModel("Models/HoverTank/Tank2.mesh.xml");
         CollisionShape colShape = CollisionShapeFactory.createDynamicMeshShape(spaceCraft);
         spaceCraft.setShadowMode(ShadowMode.CastAndReceive);
-        spaceCraft.setLocalTranslation(new Vector3f(-140, 14, -23));
+        spaceCraft.setLocalTranslation(new Vector3f(-140, 50, -23));
         spaceCraft.setLocalRotation(new Quaternion(new float[]{0, 0.01f, 0}));
 
         hoverControl = new PhysicsHoverControl(colShape, 500);