- remove setting of bounding box from CollisionShapeFactory

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9412 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 4adaf86db9
commit 4a39f5f37a
  1. 1
      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()));

Loading…
Cancel
Save