public class BoxCollisionShape extends CollisionShape
margin, objectId, scale| Constructor and Description |
|---|
BoxCollisionShape() |
BoxCollisionShape(com.jme3.math.Vector3f halfExtents)
creates a collision box from the given halfExtents
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape() |
com.jme3.math.Vector3f |
getHalfExtents() |
void |
read(com.jme3.export.JmeImporter im) |
void |
write(com.jme3.export.JmeExporter ex) |
finalize, getMargin, getObjectId, getScale, setMargin, setObjectId, setScalepublic BoxCollisionShape()
public BoxCollisionShape(com.jme3.math.Vector3f halfExtents)
halfExtents - the halfExtents of the CollisionBoxpublic 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 CollisionShapejava.io.IOExceptionpublic void read(com.jme3.export.JmeImporter im)
throws java.io.IOException
read in interface com.jme3.export.Savableread in class CollisionShapejava.io.IOExceptionprotected void createShape()