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
ModifierConstructorDescriptionprotected
BoxCollisionShape
(Vector3f halfExtents) creates a collision box from the given halfExtents -
Method Summary
Modifier and TypeMethodDescriptionprotected void
final Vector3f
void
read
(JmeImporter im) void
write
(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:
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()
-