public class BoxCollisionShape extends CollisionShape
margin, objectId, scale| Modifier | Constructor and Description |
|---|---|
protected |
BoxCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
|
BoxCollisionShape(com.jme3.math.Vector3f halfExtents)
Instantiate a box shape with the specified half extents.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape()
Instantiate the configured shape in Bullet.
|
com.jme3.math.Vector3f |
getHalfExtents()
Access the half extents of the box.
|
void |
read(com.jme3.export.JmeImporter im)
De-serialize this shape, for example when loading from a J3O file.
|
void |
write(com.jme3.export.JmeExporter ex)
Serialize this shape, for example when saving to a J3O file.
|
finalize, getDefaultMargin, getMargin, getObjectId, getScale, isNonMoving, setDefaultMargin, setMargin, setObjectId, setScaleprotected BoxCollisionShape()
public BoxCollisionShape(com.jme3.math.Vector3f halfExtents)
halfExtents - the desired unscaled half extents (not null, no
negative component, alias created)public final com.jme3.math.Vector3f getHalfExtents()
public void write(com.jme3.export.JmeExporter ex)
throws java.io.IOException
write in interface com.jme3.export.Savablewrite in class CollisionShapeex - exporter (not null)java.io.IOException - from exporterpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapeim - importer (not null)java.io.IOException - from importerprotected void createShape()