MinieLibrary/src/main/java/com/jme3/bullet/PhysicsSoftSpace.java
/**
     * NOTE: When a soft body is added, its world info may get replaced with
     * that of the space.
     *
     * @param softBody the body to add (not null, not already in the space)
     */
When a soft body is added, its world info may get replaced with
that of the space.

@param softBody the body to add (not null, not already in the space)
When a soft body is added its world info may get replaced with that of the space . @param softBody the body to add ( not null not already in the space )
private void addSoftBody(PhysicsSoftBody softBody) {
        long softBodyId = softBody.nativeId();
        if (softBodyMap.containsKey(softBodyId)) {
            logger2.log(Level.WARNING, "{0} is already added to {1}.",
                    new Object[]{softBody, this});
            return;
        }
        assert !softBody.isInWorld();
        softBodyMap.put(softBodyId, softBody);
        logger2.log(Level.FINE, "Adding {0} to {1}.",
                new Object[]{softBody, this});
        long spaceId = nativeId();
        addSoftBody(spaceId, softBodyId);
        if (!softBody.isWorldInfoProtected()) { 
            softBody.setWorldInfo(getWorldInfo());
        }
    }
private void addSoftBody ( PhysicsSoftBody softBody ) { long softBodyId = softBody . nativeId ( ) ; if ( softBodyMap . containsKey ( softBodyId ) ) { logger2 . log ( Level . WARNING , "{0} is already added to {1}." , new Object [ ] { softBody , this } ) ; return ; } assert ! softBody . isInWorld ( ) ; softBodyMap . put ( softBodyId , softBody ) ; logger2 . log ( Level . FINE , "Adding {0} to {1}." , new Object [ ] { softBody , this } ) ; long spaceId = nativeId ( ) ; addSoftBody ( spaceId , softBodyId ) ; if ( ! softBody . isWorldInfoProtected ( ) ) { softBody . setWorldInfo ( getWorldInfo ( ) ) ; } }
NOTE: When a soft body is added, its world info may get replaced with
 that of the space.
NOTE : When a soft body is added its world info may get replaced with that of the space .
// replace the world info