public class SimplexCollisionShape extends CollisionShape
margin, objectId, scale| Modifier | Constructor and Description |
|---|---|
protected |
SimplexCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
|
SimplexCollisionShape(com.jme3.math.Vector3f point1)
Instantiate a point collision shape based on the specified points.
|
|
SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2)
Instantiate a line-segment collision shape based on the specified points.
|
|
SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2,
com.jme3.math.Vector3f point3)
Instantiate a triangular collision shape based on the specified points.
|
|
SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2,
com.jme3.math.Vector3f point3,
com.jme3.math.Vector3f point4)
Instantiate a tetrahedral collision shape based on the specified points.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
createShape()
Instantiate the configured shape in Bullet.
|
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 SimplexCollisionShape()
public SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2,
com.jme3.math.Vector3f point3,
com.jme3.math.Vector3f point4)
point1 - the coordinates of 1st point (not null, alias created)point2 - the coordinates of 2nd point (not null, alias created)point3 - the coordinates of 3rd point (not null, alias created)point4 - the coordinates of 4th point (not null, alias created)public SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2,
com.jme3.math.Vector3f point3)
point1 - the coordinates of 1st point (not null, alias created)point2 - the coordinates of 2nd point (not null, alias created)point3 - the coordinates of 3rd point (not null, alias created)public SimplexCollisionShape(com.jme3.math.Vector3f point1,
com.jme3.math.Vector3f point2)
point1 - the coordinates of 1st point (not null, alias created)point2 - the coordinates of 2nd point (not null, alias created)public SimplexCollisionShape(com.jme3.math.Vector3f point1)
point1 - the coordinates of point (not null, alias created)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()