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:
com.jme3.export.Savable
Basic box collision shape
- Author:
- normenhansen
-
Field Summary
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBoxCollisionShape(com.jme3.math.Vector3f halfExtents) creates a collision box from the given halfExtents -
Method Summary
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
public BoxCollisionShape(com.jme3.math.Vector3f halfExtents) creates a collision box from the given halfExtents- Parameters:
halfExtents- the halfExtents of the CollisionBox
-
-
Method Details
-
getHalfExtents
public final com.jme3.math.Vector3f getHalfExtents() -
write
- Specified by:
writein interfacecom.jme3.export.Savable- Overrides:
writein classCollisionShape- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Overrides:
readin classCollisionShape- Throws:
IOException
-
createShape
protected void createShape()
-