public class MeshCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected com.bulletphysics.collision.shapes.IndexedMesh |
bulletMesh |
protected int |
numTriangles |
protected int |
numVertices |
protected java.nio.ByteBuffer |
triangleIndexBase |
protected int |
triangleIndexStride |
protected java.nio.ByteBuffer |
vertexBase |
protected int |
vertexStride |
cShape, margin, scale| Modifier | Constructor and Description |
|---|---|
protected |
MeshCollisionShape() |
|
MeshCollisionShape(Mesh mesh)
Creates a collision shape from the given TriMesh
|
|
MeshCollisionShape(Mesh mesh,
boolean dummy)
API compatibility with native bullet.
|
| Modifier and Type | Method and Description |
|---|---|
Mesh |
createJmeMesh()
creates a jme mesh from the collision shape, only needed for debugging
|
protected void |
createShape() |
void |
read(JmeImporter im) |
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScaleprotected int numVertices
protected int numTriangles
protected int vertexStride
protected int triangleIndexStride
protected java.nio.ByteBuffer triangleIndexBase
protected java.nio.ByteBuffer vertexBase
protected com.bulletphysics.collision.shapes.IndexedMesh bulletMesh
protected MeshCollisionShape()
public MeshCollisionShape(Mesh mesh)
mesh - the TriMesh to usepublic MeshCollisionShape(Mesh mesh, boolean dummy)
mesh - the TriMesh to usedummy - Unusedpublic 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.IOExceptionprotected void createShape()