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

@param exporter (not null)
@throws IOException from the exporter
Serialize this body 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 {
        super.write(exporter);
        OutputCapsule capsule = exporter.getCapsule(this);
        capsule.write(getMass(), tagMass, 1f);
        capsule.write(isContactResponse(), tagContactResponse, true);
        capsule.write(getAngularFactor(null), tagAngularFactor, null);
        capsule.write(getLinearFactor(null), tagLinearFactor, null);
        capsule.write(kinematic, tagKinematic, false);
        capsule.write(getInverseInertiaLocal(null), tagInverseInertia, null);
        capsule.write(getLinearDamping(), tagLinearDamping, 0f);
        capsule.write(getAngularDamping(), tagAngularDamping, 0f);
        capsule.write(getLinearSleepingThreshold(), tagLinearSleepingThreshold,
                0.8f);
        capsule.write(getAngularSleepingThreshold(),
                tagAngularSleepingThreshold, 1f);
        capsule.write(isGravityProtected(), tagProtectGravity, false);
        capsule.write(getPhysicsLocation(null), tagPhysicsLocation, null);
        capsule.write(getPhysicsRotationMatrix(null), tagPhysicsRotation, null);
        if (isDynamic()) {
            capsule.write(getLinearVelocity(null), tagLinearVelocity, null);
            capsule.write(getAngularVelocity(null), tagAngularVelocity, null);
        }
        capsule.write(totalAppliedForce(null), tagAppliedForce, null);
        capsule.write(totalAppliedTorque(null), tagAppliedTorque, null);
        writeJoints(capsule);
    }
@ Override public void write ( JmeExporter exporter ) throws IOException { super . write ( exporter ) ; OutputCapsule capsule = exporter . getCapsule ( this ) ; capsule . write ( getMass ( ) , tagMass , 1f ) ; capsule . write ( isContactResponse ( ) , tagContactResponse , true ) ; capsule . write ( getAngularFactor ( null ) , tagAngularFactor , null ) ; capsule . write ( getLinearFactor ( null ) , tagLinearFactor , null ) ; capsule . write ( kinematic , tagKinematic , false ) ; capsule . write ( getInverseInertiaLocal ( null ) , tagInverseInertia , null ) ; capsule . write ( getLinearDamping ( ) , tagLinearDamping , 0f ) ; capsule . write ( getAngularDamping ( ) , tagAngularDamping , 0f ) ; capsule . write ( getLinearSleepingThreshold ( ) , tagLinearSleepingThreshold , 0.8f ) ; capsule . write ( getAngularSleepingThreshold ( ) , tagAngularSleepingThreshold , 1f ) ; capsule . write ( isGravityProtected ( ) , tagProtectGravity , false ) ; capsule . write ( getPhysicsLocation ( null ) , tagPhysicsLocation , null ) ; capsule . write ( getPhysicsRotationMatrix ( null ) , tagPhysicsRotation , null ) ; if ( isDynamic ( ) ) { capsule . write ( getLinearVelocity ( null ) , tagLinearVelocity , null ) ; capsule . write ( getAngularVelocity ( null ) , tagAngularVelocity , null ) ; } capsule . write ( totalAppliedForce ( null ) , tagAppliedForce , null ) ; capsule . write ( totalAppliedTorque ( null ) , tagAppliedTorque , null ) ; writeJoints ( capsule ) ; }
Serialize this body to the specified exporter, for example when saving to
 a J3O file.
Serialize this body to the specified exporter for example when saving to a J3O file .