public class GImpactCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected long |
meshId
Unique identifier of the Bullet mesh.
|
protected int |
numTriangles |
protected int |
numVertices |
protected java.nio.ByteBuffer |
triangleIndexBase |
protected int |
triangleIndexStride |
protected java.nio.ByteBuffer |
vertexBase |
protected int |
vertexStride |
margin, objectId, scale| Constructor and Description |
|---|
GImpactCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
GImpactCollisionShape(com.jme3.scene.Mesh mesh)
Instantiate a shape based on the specified JME mesh.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape()
Instantiate the configured shape in Bullet.
|
protected void |
finalize()
Finalize this shape just before it is destroyed.
|
void |
read(com.jme3.export.JmeImporter im)
De-serialize this shape, for example when loading from a J3O file.
|
void |
write(com.jme3.export.JmeExporter ex)
Serialize this shape, for example when saving to a J3O file.
|
getMargin, getObjectId, getScale, setMargin, setObjectId, setScaleprotected int numVertices
protected int numTriangles
protected int vertexStride
protected int triangleIndexStride
protected java.nio.ByteBuffer triangleIndexBase
protected java.nio.ByteBuffer vertexBase
protected long meshId
public GImpactCollisionShape()
public GImpactCollisionShape(com.jme3.scene.Mesh mesh)
mesh - the Mesh to usepublic void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class CollisionShapeex - exporter (not null)java.io.IOException - from exporterpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapeim - importer (not null)java.io.IOException - from importerprotected void createShape()
protected void finalize()
throws java.lang.Throwable
finalize in class CollisionShapejava.lang.Throwable - ignored by the garbage collector