public class SimplexCollisionShape extends CollisionShape
margin, objectId, scale
Modifier | Constructor and Description |
---|---|
protected |
SimplexCollisionShape()
No-argument constructor needed by SavableClassUtil.
|
|
SimplexCollisionShape(Vector3f point1)
Instantiate a point collision shape based on the specified points.
|
|
SimplexCollisionShape(Vector3f point1,
Vector3f point2)
Instantiate a line-segment collision shape based on the specified points.
|
|
SimplexCollisionShape(Vector3f point1,
Vector3f point2,
Vector3f point3)
Instantiate a triangular collision shape based on the specified points.
|
|
SimplexCollisionShape(Vector3f point1,
Vector3f point2,
Vector3f point3,
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(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, setScale
protected SimplexCollisionShape()
public SimplexCollisionShape(Vector3f point1, Vector3f point2, Vector3f point3, 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(Vector3f point1, Vector3f point2, 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(Vector3f point1, Vector3f point2)
point1
- the coordinates of 1st point (not null, alias created)point2
- the coordinates of 2nd point (not null, alias created)public SimplexCollisionShape(Vector3f point1)
point1
- the coordinates of point (not null, alias created)public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class CollisionShape
ex
- exporter (not null)java.io.IOException
- from exporterpublic void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class CollisionShape
im
- importer (not null)java.io.IOException
- from importerprotected void createShape()