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 SummaryFieldsModifier and TypeFieldDescriptionprotected com.bulletphysics.collision.shapes.IndexedMeshprotected intprotected intprotected ByteBufferprotected intprotected ByteBufferprotected intprotected Vector3fFields inherited from class com.jme3.bullet.collision.shapes.CollisionShapecShape, margin, scale
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedGImpactCollisionShape(Mesh mesh) creates a collision shape from the given Mesh
- 
Method SummaryModifier 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.CollisionShapecalculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin
- 
Field Details- 
worldScale
- 
numVerticesprotected int numVertices
- 
numTrianglesprotected int numTriangles
- 
vertexStrideprotected int vertexStride
- 
triangleIndexStrideprotected int triangleIndexStride
- 
triangleIndexBase
- 
vertexBase
- 
bulletMeshprotected com.bulletphysics.collision.shapes.IndexedMesh bulletMesh
 
- 
- 
Constructor Details- 
GImpactCollisionShapeprotected GImpactCollisionShape()
- 
GImpactCollisionShapecreates a collision shape from the given Mesh- Parameters:
- mesh- the Mesh to use
 
 
- 
- 
Method Details- 
createJmeMeshcreates a jme mesh from the collision shape, only needed for debugging- Returns:
- a new Mesh
 
- 
write- Specified by:
- writein interface- Savable
- Overrides:
- writein class- CollisionShape
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- CollisionShape
- Throws:
- IOException
 
- 
createShapeprotected void createShape()
- 
setScale- Overrides:
- setScalein class- CollisionShape
 
 
-