/** Creates a btBoxShape with the same dimensions as the shape. */ public BulletConstructor (final Model model, final float mass) { final BoundingBox boundingBox = new BoundingBox(); model.calculateBoundingBox(boundingBox); create(model, mass, boundingBox.getWidth(), boundingBox.getHeight(), boundingBox.getDepth()); }
this.boundingRadius = (boundingBox.getWidth() + boundingBox.getDepth()) / 4;