diff --git a/engine/src/core/com/jme3/scene/shape/Box.java b/engine/src/core/com/jme3/scene/shape/Box.java index 03dc00a2d..3b40439c8 100644 --- a/engine/src/core/com/jme3/scene/shape/Box.java +++ b/engine/src/core/com/jme3/scene/shape/Box.java @@ -95,11 +95,15 @@ public class Box extends AbstractBox { * the given amount in each direction. So, for example, a box * with extent of 0.5 would be the unit cube. * + * @Deprecated: Due to constant confusion of geometry centers and the center + * of the box mesh this method has been deprecated. + * * @param center the center of the box. * @param x the size of the box along the x axis, in both directions. * @param y the size of the box along the y axis, in both directions. * @param z the size of the box along the z axis, in both directions. */ + @Deprecated public Box(Vector3f center, float x, float y, float z) { super(); updateGeometry(center, x, y, z); diff --git a/sdk/BasicGameTemplate/src/mygame/Main.java b/sdk/BasicGameTemplate/src/mygame/Main.java index da9dde7eb..91fee9846 100644 --- a/sdk/BasicGameTemplate/src/mygame/Main.java +++ b/sdk/BasicGameTemplate/src/mygame/Main.java @@ -21,7 +21,7 @@ public class Main extends SimpleApplication { @Override public void simpleInitApp() { - Box b = new Box(Vector3f.ZERO, 1, 1, 1); + Box b = new Box(1, 1, 1); Geometry geom = new Geometry("Box", b); Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); diff --git a/sdk/jme3-templates/src/com/jme3/gde/templates/BasicGameProject.zip b/sdk/jme3-templates/src/com/jme3/gde/templates/BasicGameProject.zip index 6a44800fc..95fe0d7e5 100644 Binary files a/sdk/jme3-templates/src/com/jme3/gde/templates/BasicGameProject.zip and b/sdk/jme3-templates/src/com/jme3/gde/templates/BasicGameProject.zip differ