From 4f02b407cf611046823a79a5fd664db762647698 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Sun, 13 Jan 2013 01:00:53 +0000 Subject: [PATCH] - remove usage of Box mesh constructor with position from BasicGame template - deprecate Box mesh constructor with position and add cause to javadoc - BOOYA git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10064 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- engine/src/core/com/jme3/scene/shape/Box.java | 4 ++++ sdk/BasicGameTemplate/src/mygame/Main.java | 2 +- .../jme3/gde/templates/BasicGameProject.zip | Bin 5685 -> 5677 bytes 3 files changed, 5 insertions(+), 1 deletion(-) 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 6a44800fc3024b723e4fcca5664c8e160448fdaa..95fe0d7e5d697d4bcff81a2e3d67a58379caa0cf 100644 GIT binary patch delta 500 zcmV*PcMHr3hu6fQn7J zVl+%=D9ba4PvG#^@F}jAr*MB8TrASj`8M)ge{Y{LMx!xj9q7^^?Xxq)@
&BJcu zVOxBdL;qxK$00()#)LfjM9Dej9CnP))Q^|XP131@(It3jNYky&p-Kj05tP<&7;wCSQ>A|_Kkm7Bx9$+_C6@93 q$XVWsKa-FV9J6;3as&;;4lP3e`kjQh0RRBrllB!k22&9L0000oUiNnY delta 508 zcmVPz{28ZIs1%Q5YM1 zB&fZWPZnoVg&^kr`p(DA-Qwm#{43Vv<7{^x zj_5Q-e~fa|8!P3w?|6<&H9C}c=q*xwy%bNa3Md!;g-5O?lL96{nCS4nR(ooF1m~kg z*D9CLvA-(9e#-(t-KmsdrHli7A#NtYnLzNXD1gtHl8C)EJbR8y+@8p(czD>3 zJZy`j^zz%s&3X#&h9@IGY6=Y-W8%>#N-j}OVaxbzm|+)qW;zWtxCCp6G+yEq%B8o~ zyNbiNxJ%W_q`G==d`lX&e41HZW{q$;$=UrbiL!q&^=Y-_qT6EzKeQ`*wvn6j^ERXR zK=j#bl!{2z?XoqU7Kfz&)A%81CJ?*M^RyIpxz<(nWqrGT4@zs;_c&h2vC==5AJ$&{ yvHcM3C6?iL$ywft-;;k59J6l`as&;J4*o!*<}Mh(0RRB)lkOEc23rvT0002v#{HxK