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
FieldsModifier and TypeFieldDescriptionprotected com.bulletphysics.collision.shapes.IndexedMeshprotected intprotected intprotected ByteBufferprotected intprotected ByteBufferprotected intprotected Vector3fFields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGImpactCollisionShape(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 voidvoidread(JmeImporter im) voidvoidwrite(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:
writein interfaceSavable- Overrides:
writein classCollisionShape- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classCollisionShape- Throws:
IOException
-
createShape
protected void createShape() -
setScale
- Overrides:
setScalein classCollisionShape
-