Package com.jme3.bullet.collision.shapes
Class SimplexCollisionShape
java.lang.Object
com.jme3.bullet.collision.shapes.CollisionShape
com.jme3.bullet.collision.shapes.SimplexCollisionShape
- All Implemented Interfaces:
com.jme3.export.Savable
A simple point, line, triangle or quad collisionShape based on one to four points-
- Author:
- normenhansen
-
Field Summary
Fields inherited from class com.jme3.bullet.collision.shapes.CollisionShape
cShape, margin, scale -
Constructor Summary
ConstructorsConstructorDescriptionSimplexCollisionShape(com.jme3.math.Vector3f point1) SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2) SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2, com.jme3.math.Vector3f point3) SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2, com.jme3.math.Vector3f point3, com.jme3.math.Vector3f point4) -
Method Summary
Methods inherited from class com.jme3.bullet.collision.shapes.CollisionShape
calculateLocalInertia, getCShape, getDefaultMargin, getMargin, getScale, setCShape, setDefaultMargin, setMargin, setScale
-
Constructor Details
-
SimplexCollisionShape
public SimplexCollisionShape() -
SimplexCollisionShape
public SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2, com.jme3.math.Vector3f point3, com.jme3.math.Vector3f point4) -
SimplexCollisionShape
public SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2, com.jme3.math.Vector3f point3) -
SimplexCollisionShape
public SimplexCollisionShape(com.jme3.math.Vector3f point1, com.jme3.math.Vector3f point2) -
SimplexCollisionShape
public SimplexCollisionShape(com.jme3.math.Vector3f point1)
-
-
Method Details
-
write
- Specified by:
writein interfacecom.jme3.export.Savable- Overrides:
writein classCollisionShape- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Overrides:
readin classCollisionShape- Throws:
IOException
-
createShape
protected void createShape()
-