public class PlaneCollisionShape extends CollisionShape
margin, objectId, scale| Modifier | Constructor and Description |
|---|---|
protected |
PlaneCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
|
PlaneCollisionShape(Plane plane)
Instantiate a plane shape defined by the specified plane.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape()
Instantiate the configured shape in Bullet.
|
Plane |
getPlane()
Access the defining plane.
|
void |
read(JmeImporter im)
De-serialize this shape, for example when loading from a J3O file.
|
void |
write(JmeExporter ex)
Serialize this shape, for example when saving to a J3O file.
|
finalize, getDefaultMargin, getMargin, getObjectId, getScale, isNonMoving, setDefaultMargin, setMargin, setObjectId, setScaleprotected PlaneCollisionShape()
public PlaneCollisionShape(Plane plane)
plane - the desired plane (not null, alias created)public final Plane getPlane()
public void write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class CollisionShapeex - exporter (not null)java.io.IOException - from exporterpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class CollisionShapeim - importer (not null)java.io.IOException - from importerprotected void createShape()