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 Summary
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBoxCollisionShape(Vector3f halfExtents) creates a collision box from the given halfExtents - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinal Vector3fvoidread(JmeImporter im) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScale 
- 
Constructor Details
- 
BoxCollisionShape
protected BoxCollisionShape() - 
BoxCollisionShape
creates a collision box from the given halfExtents- Parameters:
 halfExtents- the halfExtents of the CollisionBox
 
 - 
 - 
Method Details
- 
getHalfExtents
 - 
write
- Specified by:
 writein interfaceSavable- Overrides:
 writein classCollisionShape- Throws:
 IOException
 - 
read
- Specified by:
 readin interfaceSavable- Overrides:
 readin classCollisionShape- Throws:
 IOException
 - 
createShape
protected void createShape() 
 -