- remove setting of bounding box from CollisionShapeFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9412 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2012-05-21 23:54:52 +00:00
parent 4adaf86db9
commit 4a39f5f37a

@ -225,7 +225,6 @@ public class CollisionShapeFactory {
* @return BoxCollisionShape with the size of the spatials BoundingBox
*/
private static BoxCollisionShape createSingleBoxShape(Spatial spatial, Spatial parent) {
spatial.setModelBound(new BoundingBox());
//TODO: using world bound here instead of "local world" bound...
BoxCollisionShape shape = new BoxCollisionShape(
((BoundingBox) spatial.getWorldBound()).getExtent(new Vector3f()));