Package com.jme3.bullet.collision.shapes
Class GImpactCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.GImpactCollisionShape
- All Implemented Interfaces:
Savable
Basic mesh collision shape
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.bulletphysics.collision.shapes.IndexedMesh
protected int
protected int
protected ByteBuffer
protected int
protected ByteBuffer
protected int
protected Vector3f
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale
-
Constructor Summary
ModifierConstructorDescriptionprotected
GImpactCollisionShape
(Mesh mesh) creates a collision shape from the given Mesh -
Method Summary
Modifier and TypeMethodDescriptioncreates a jme mesh from the collision shape, only needed for debuggingprotected void
void
read
(JmeImporter im) void
void
write
(JmeExporter ex) Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin
-
Field Details
-
worldScale
-
numVertices
protected int numVertices -
numTriangles
protected int numTriangles -
vertexStride
protected int vertexStride -
triangleIndexStride
protected int triangleIndexStride -
triangleIndexBase
-
vertexBase
-
bulletMesh
protected com.bulletphysics.collision.shapes.IndexedMesh bulletMesh
-
-
Constructor Details
-
GImpactCollisionShape
protected GImpactCollisionShape() -
GImpactCollisionShape
creates a collision shape from the given Mesh- Parameters:
mesh
- the Mesh to use
-
-
Method Details
-
createJmeMesh
creates a jme mesh from the collision shape, only needed for debugging- Returns:
- a new Mesh
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classCollisionShape
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classCollisionShape
- Throws:
IOException
-
createShape
protected void createShape() -
setScale
- Overrides:
setScale
in classCollisionShape
-