public class HeightfieldCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
bbuf |
protected boolean |
flipQuadEdges |
protected float[] |
heightfieldData |
protected float |
heightScale |
protected int |
heightStickLength |
protected int |
heightStickWidth |
protected float |
maxHeight |
protected float |
minHeight |
protected int |
upAxis |
margin, objectId, scale| Constructor and Description |
|---|
HeightfieldCollisionShape() |
HeightfieldCollisionShape(float[] heightmap) |
HeightfieldCollisionShape(float[] heightmap,
com.jme3.math.Vector3f scale) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCollisionHeightfield(float[] heightmap,
com.jme3.math.Vector3f worldScale) |
com.jme3.scene.Mesh |
createJmeMesh() |
protected void |
createShape() |
void |
read(com.jme3.export.JmeImporter im) |
void |
write(com.jme3.export.JmeExporter ex) |
finalize, getMargin, getObjectId, getScale, setMargin, setObjectId, setScaleprotected int heightStickWidth
protected int heightStickLength
protected float[] heightfieldData
protected float heightScale
protected float minHeight
protected float maxHeight
protected int upAxis
protected boolean flipQuadEdges
protected java.nio.ByteBuffer bbuf
public HeightfieldCollisionShape()
public HeightfieldCollisionShape(float[] heightmap)
public HeightfieldCollisionShape(float[] heightmap,
com.jme3.math.Vector3f scale)
protected void createCollisionHeightfield(float[] heightmap,
com.jme3.math.Vector3f worldScale)
protected void createShape()
public com.jme3.scene.Mesh createJmeMesh()
public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapejava.io.IOException