public class GImpactCollisionShape extends CollisionShape
| Modifier and Type | Field and Description |
|---|---|
protected long |
meshId |
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() |
GImpactCollisionShape(com.jme3.scene.Mesh mesh)
creates a collision shape from the given Mesh
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
protected void |
finalize() |
void |
read(com.jme3.export.JmeImporter im) |
void |
write(com.jme3.export.JmeExporter ex) |
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 CollisionShapejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapejava.io.IOExceptionprotected void createShape()
protected void finalize()
throws java.lang.Throwable
finalize in class CollisionShapejava.lang.Throwable