private static HullCollisionShape createSingleDynamicMeshShape(Geometry geom, Spatial parent) {
        Mesh mesh = geom.getMesh();
        Transform trans = getTransform(geom, parent);
        if (mesh != null) {
            HullCollisionShape dynamicShape = new HullCollisionShape(mesh);
            dynamicShape.setScale(trans.getScale());
            return dynamicShape;
        } else {
            return null;
        }
    }
Create a hull collision shape for the specified geometry.

@param geom the geometry on which to base the shape (not null)
@param parent
jme3-jbullet/src/main/java/com/jme3/bullet/util/CollisionShapeFactory.java