public class HeightfieldCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
flipQuadEdges |
protected float[] |
heightfieldData |
protected float |
heightScale |
protected int |
heightStickLength |
protected int |
heightStickWidth |
protected float |
maxHeight |
protected float |
minHeight |
protected int |
upAxis |
cShape, margin, scale| Modifier | Constructor and Description |
|---|---|
protected |
HeightfieldCollisionShape() |
|
HeightfieldCollisionShape(float[] heightmap) |
|
HeightfieldCollisionShape(float[] heightmap,
Vector3f scale) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCollisionHeightfield(float[] heightmap,
Vector3f worldScale) |
Mesh |
createJmeMesh() |
protected void |
createShape() |
void |
read(JmeImporter im) |
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, 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 HeightfieldCollisionShape()
public HeightfieldCollisionShape(float[] heightmap)
public HeightfieldCollisionShape(float[] heightmap,
Vector3f scale)
protected void createCollisionHeightfield(float[] heightmap,
Vector3f worldScale)
protected void createShape()
public Mesh createJmeMesh()
public void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class CollisionShapejava.io.IOException