MinieLibrary/src/main/java/com/jme3/bullet/MultiBody.java
/**
     * Serialize this object to the specified exporter, for example when saving
     * to a J3O file.
     *
     * @param exporter (not null)
     * @throws IOException from the exporter
     */
Serialize this object to the specified exporter, for example when saving
to a J3O file.

@param exporter (not null)
@throws IOException from the exporter
Serialize this object to the specified exporter for example when saving to a J3O file . @param exporter ( not null ) @throws IOException from the exporter
@Override
    public void write(JmeExporter exporter) throws IOException {
        OutputCapsule capsule = exporter.getCapsule(this);
        capsule.write(angularDamping(), tagAngularDamping, 0.04f);
        capsule.write(baseAngularVelocity(null), tagBaseAngularVelocity, null);
        capsule.write(getBaseCollider(), tagBaseCollider, null);
        capsule.write(baseInertia(null), tagBaseInertia, null);
        capsule.write(baseLocation(null), tagBaseLocation, null);
        capsule.write(baseMass(), tagBaseMass, 1f);
        capsule.write(baseVelocity(null), tagBaseVelocity, null);
        capsule.write(canSleep(), tagCanSleep, true);
        capsule.write(collisionGroup(), tagCollisionGroup,
                PhysicsCollisionObject.COLLISION_GROUP_01);
        capsule.write(collideWithGroups(), tagCollisionGroupsMask,
                PhysicsCollisionObject.COLLISION_GROUP_01);
        capsule.write(hasFixedBase(), tagFixedBase, false);
        capsule.write(isUsingGlobalVelocities(), tagGlobalVelocities, false);
        capsule.write(linearDamping(), tagLinearDamping, 0.04f);
        int numLinks = links.length;
        Savable[] savableLinks = new Savable[numLinks];
        System.arraycopy(links, 0, savableLinks, 0, numLinks);
        capsule.write(savableLinks, tagLinks, null);
        capsule.write(numLinks, tagNumLinks, 0);
        capsule.write(isUsingRK4(), tagRK4, false);
    }
@ Override public void write ( JmeExporter exporter ) throws IOException { OutputCapsule capsule = exporter . getCapsule ( this ) ; capsule . write ( angularDamping ( ) , tagAngularDamping , 0.04f ) ; capsule . write ( baseAngularVelocity ( null ) , tagBaseAngularVelocity , null ) ; capsule . write ( getBaseCollider ( ) , tagBaseCollider , null ) ; capsule . write ( baseInertia ( null ) , tagBaseInertia , null ) ; capsule . write ( baseLocation ( null ) , tagBaseLocation , null ) ; capsule . write ( baseMass ( ) , tagBaseMass , 1f ) ; capsule . write ( baseVelocity ( null ) , tagBaseVelocity , null ) ; capsule . write ( canSleep ( ) , tagCanSleep , true ) ; capsule . write ( collisionGroup ( ) , tagCollisionGroup , PhysicsCollisionObject . COLLISION_GROUP_01 ) ; capsule . write ( collideWithGroups ( ) , tagCollisionGroupsMask , PhysicsCollisionObject . COLLISION_GROUP_01 ) ; capsule . write ( hasFixedBase ( ) , tagFixedBase , false ) ; capsule . write ( isUsingGlobalVelocities ( ) , tagGlobalVelocities , false ) ; capsule . write ( linearDamping ( ) , tagLinearDamping , 0.04f ) ; int numLinks = links . length ; Savable [ ] savableLinks = new Savable [ numLinks ] ; System . arraycopy ( links , 0 , savableLinks , 0 , numLinks ) ; capsule . write ( savableLinks , tagLinks , null ) ; capsule . write ( numLinks , tagNumLinks , 0 ) ; capsule . write ( isUsingRK4 ( ) , tagRK4 , false ) ; }
Serialize this object to the specified exporter, for example when saving
 to a J3O file.
Serialize this object to the specified exporter for example when saving to a J3O file .