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, setScale
protected 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 Savable
write
in class CollisionShape
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class CollisionShape
java.io.IOException