浏览代码

Removes the use of the deprecated Box contructor with the mesh origin in HelloPhysics. Also updated the wiki

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10720 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
rem..om 12 年之前
父节点
当前提交
e36241e74b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      engine/src/test/jme3test/helloworld/HelloPhysics.java

+ 2 - 2
engine/src/test/jme3test/helloworld/HelloPhysics.java

@@ -87,10 +87,10 @@ public class HelloPhysics extends SimpleApplication {
     sphere = new Sphere(32, 32, 0.4f, true, false);
     sphere.setTextureMode(TextureMode.Projected);
     /** Initialize the brick geometry */
-    box = new Box(Vector3f.ZERO, brickLength, brickHeight, brickWidth);
+    box = new Box(brickLength, brickHeight, brickWidth);
     box.scaleTextureCoordinates(new Vector2f(1f, .5f));
     /** Initialize the floor geometry */
-    floor = new Box(Vector3f.ZERO, 10f, 0.1f, 5f);
+    floor = new Box(10f, 0.1f, 5f);
     floor.scaleTextureCoordinates(new Vector2f(3, 6));
   }