public class BoxCollisionShape extends CollisionShape
cShape, margin, scale| Modifier | Constructor and Description |
|---|---|
protected |
BoxCollisionShape() |
|
BoxCollisionShape(Vector3f halfExtents)
creates a collision box from the given halfExtents
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
Vector3f |
getHalfExtents() |
void |
read(JmeImporter im) |
void |
write(JmeExporter ex) |
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScaleprotected BoxCollisionShape()
public BoxCollisionShape(Vector3f halfExtents)
halfExtents - the halfExtents of the CollisionBoxpublic final Vector3f getHalfExtents()
public void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class CollisionShapejava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class CollisionShapejava.io.IOExceptionprotected void createShape()