From 4a39f5f37a8c63c18b6f1d9d2773aa72335487f0 Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Mon, 21 May 2012 23:54:52 +0000 Subject: [PATCH] - remove setting of bounding box from CollisionShapeFactory git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9412 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../com/jme3/bullet/util/CollisionShapeFactory.java | 1 - 1 file changed, 1 deletion(-) diff --git a/engine/src/bullet-common/com/jme3/bullet/util/CollisionShapeFactory.java b/engine/src/bullet-common/com/jme3/bullet/util/CollisionShapeFactory.java index b0031f228..44aab2808 100644 --- a/engine/src/bullet-common/com/jme3/bullet/util/CollisionShapeFactory.java +++ b/engine/src/bullet-common/com/jme3/bullet/util/CollisionShapeFactory.java @@ -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()));