- 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:
parent
4adaf86db9
commit
4a39f5f37a
@ -225,7 +225,6 @@ public class CollisionShapeFactory {
|
|||||||
* @return BoxCollisionShape with the size of the spatials BoundingBox
|
* @return BoxCollisionShape with the size of the spatials BoundingBox
|
||||||
*/
|
*/
|
||||||
private static BoxCollisionShape createSingleBoxShape(Spatial spatial, Spatial parent) {
|
private static BoxCollisionShape createSingleBoxShape(Spatial spatial, Spatial parent) {
|
||||||
spatial.setModelBound(new BoundingBox());
|
|
||||||
//TODO: using world bound here instead of "local world" bound...
|
//TODO: using world bound here instead of "local world" bound...
|
||||||
BoxCollisionShape shape = new BoxCollisionShape(
|
BoxCollisionShape shape = new BoxCollisionShape(
|
||||||
((BoundingBox) spatial.getWorldBound()).getExtent(new Vector3f()));
|
((BoundingBox) spatial.getWorldBound()).getExtent(new Vector3f()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user