public class GImpactCollisionShape 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 |
protected Vector3f |
worldScale |
cShape, margin, scale
Modifier | Constructor and Description |
---|---|
protected |
GImpactCollisionShape() |
|
GImpactCollisionShape(Mesh mesh)
creates a collision shape from the given Mesh
|
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 |
setScale(Vector3f scale) |
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin
protected Vector3f worldScale
protected 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 GImpactCollisionShape()
public GImpactCollisionShape(Mesh mesh)
mesh
- the Mesh to usepublic 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
protected void createShape()
public void setScale(Vector3f scale)
setScale
in class CollisionShape