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
3.0
rem..om 12 years ago
parent b01ac95cfc
commit e36241e74b
  1. 4
      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));
}

Loading…
Cancel
Save