Package com.jme3.bullet.collision.shapes
Class BoxCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.BoxCollisionShape
- All Implemented Interfaces:
- Savable
Basic box collision shape
- 
Field SummaryFields inherited from class com.jme3.bullet.collision.shapes.CollisionShapecShape, margin, scale
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedBoxCollisionShape(Vector3f halfExtents) creates a collision box from the given halfExtents
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidfinal Vector3fvoidread(JmeImporter im) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShapecalculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScale
- 
Constructor Details- 
BoxCollisionShapeprotected BoxCollisionShape()
- 
BoxCollisionShapecreates a collision box from the given halfExtents- Parameters:
- halfExtents- the halfExtents of the CollisionBox
 
 
- 
- 
Method Details- 
getHalfExtents
- 
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()
 
-