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

@param exporter (not null)
@throws IOException from the exporter
Serialize this shape 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(heightStickWidth, tagHeightStickWidth, 0);
        capsule.write(heightStickLength, tagHeightStickLength, 0);
        capsule.write(heightScale, tagHeightScale, 0f);
        capsule.write(minHeight, tagMinHeight, 0f);
        capsule.write(maxHeight, tagMaxHeight, 0f);
        capsule.write(upAxis, tagUpAxis, PhysicsSpace.AXIS_Y);
        capsule.write(heightfieldData, tagHeightfieldData, new float[0]);
        capsule.write(flipQuadEdges, tagFlipQuadEdges, true);
        capsule.write(flipTriangleWinding, tagFlipTriangleWinding, false);
        capsule.write(useDiamond, tagUseDiamond, false);
        capsule.write(useZigzag, tagUseZigzag, false);
    }
@ Override public void write ( JmeExporter exporter ) throws IOException { super . write ( exporter ) ; OutputCapsule capsule = exporter . getCapsule ( this ) ; capsule . write ( heightStickWidth , tagHeightStickWidth , 0 ) ; capsule . write ( heightStickLength , tagHeightStickLength , 0 ) ; capsule . write ( heightScale , tagHeightScale , 0f ) ; capsule . write ( minHeight , tagMinHeight , 0f ) ; capsule . write ( maxHeight , tagMaxHeight , 0f ) ; capsule . write ( upAxis , tagUpAxis , PhysicsSpace . AXIS_Y ) ; capsule . write ( heightfieldData , tagHeightfieldData , new float [ 0 ] ) ; capsule . write ( flipQuadEdges , tagFlipQuadEdges , true ) ; capsule . write ( flipTriangleWinding , tagFlipTriangleWinding , false ) ; capsule . write ( useDiamond , tagUseDiamond , false ) ; capsule . write ( useZigzag , tagUseZigzag , false ) ; }
Serialize this shape to the specified exporter, for example when saving
 to a J3O file.
Serialize this shape to the specified exporter for example when saving to a J3O file .