MinieLibrary/src/main/java/com/jme3/bullet/collision/shapes/HeightfieldCollisionShape.java
/**
     * De-serialize this shape from the specified importer, for example when
     * loading from a J3O file.
     *
     * @param importer (not null)
     * @throws IOException from the importer
     */
De-serialize this shape from the specified importer, for example when
loading from a J3O file.

@param importer (not null)
@throws IOException from the importer
De - serialize this shape from the specified importer for example when loading from a J3O file . @param importer ( not null ) @throws IOException from the importer
@Override
    public void read(JmeImporter importer) throws IOException {
        super.read(importer);
        InputCapsule capsule = importer.getCapsule(this);
        heightStickWidth = capsule.readInt(tagHeightStickWidth, 0);
        heightStickLength = capsule.readInt(tagHeightStickLength, 0);
        heightScale = capsule.readFloat(tagHeightScale, 0f);
        minHeight = capsule.readFloat(tagMinHeight, 0f);
        maxHeight = capsule.readFloat(tagMaxHeight, 0f);
        upAxis = capsule.readInt(tagUpAxis, PhysicsSpace.AXIS_Y);
        heightfieldData = capsule.readFloatArray(tagHeightfieldData,
                new float[0]);
        flipQuadEdges = capsule.readBoolean(tagFlipQuadEdges, true);
        flipTriangleWinding = capsule.readBoolean(tagFlipTriangleWinding,
                false);
        useDiamond = capsule.readBoolean(tagUseDiamond, false);
        useZigzag = capsule.readBoolean(tagUseZigzag, false);
        createShape();
    }
@ Override public void read ( JmeImporter importer ) throws IOException { super . read ( importer ) ; InputCapsule capsule = importer . getCapsule ( this ) ; heightStickWidth = capsule . readInt ( tagHeightStickWidth , 0 ) ; heightStickLength = capsule . readInt ( tagHeightStickLength , 0 ) ; heightScale = capsule . readFloat ( tagHeightScale , 0f ) ; minHeight = capsule . readFloat ( tagMinHeight , 0f ) ; maxHeight = capsule . readFloat ( tagMaxHeight , 0f ) ; upAxis = capsule . readInt ( tagUpAxis , PhysicsSpace . AXIS_Y ) ; heightfieldData = capsule . readFloatArray ( tagHeightfieldData , new float [ 0 ] ) ; flipQuadEdges = capsule . readBoolean ( tagFlipQuadEdges , true ) ; flipTriangleWinding = capsule . readBoolean ( tagFlipTriangleWinding , false ) ; useDiamond = capsule . readBoolean ( tagUseDiamond , false ) ; useZigzag = capsule . readBoolean ( tagUseZigzag , false ) ; createShape ( ) ; }
De-serialize this shape from the specified importer, for example when
 loading from a J3O file.
De - serialize this shape from the specified importer for example when loading from a J3O file .