com.jme3.bullet.collision.shapes
Class MeshCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.MeshCollisionShape
- All Implemented Interfaces:
- Savable
public class MeshCollisionShape
- extends CollisionShape
Basic mesh collision shape
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numVertices
protected int numVertices
numTriangles
protected int numTriangles
vertexStride
protected int vertexStride
triangleIndexStride
protected int triangleIndexStride
triangleIndexBase
protected java.nio.ByteBuffer triangleIndexBase
vertexBase
protected java.nio.ByteBuffer vertexBase
meshId
protected long meshId
MeshCollisionShape
public MeshCollisionShape()
MeshCollisionShape
public MeshCollisionShape(Mesh mesh)
- creates a collision shape from the given TriMesh
- Parameters:
mesh
- the TriMesh to use
write
public void write(JmeExporter ex)
throws java.io.IOException
- creates a jme mesh from the collision shape, only needed for debugging
- Specified by:
write
in interface Savable
- Overrides:
write
in class CollisionShape
- Throws:
java.io.IOException
read
public void read(JmeImporter im)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Overrides:
read
in class CollisionShape
- Throws:
java.io.IOException
createShape
protected void createShape()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class CollisionShape
- Throws:
java.lang.Throwable