com.bulletphysics.collision.shapes
Class BU_Simplex1to4
java.lang.Object
com.bulletphysics.collision.shapes.CollisionShape
com.bulletphysics.collision.shapes.ConvexShape
com.bulletphysics.collision.shapes.ConvexInternalShape
com.bulletphysics.collision.shapes.PolyhedralConvexShape
com.bulletphysics.collision.shapes.BU_Simplex1to4
public class BU_Simplex1to4
- extends PolyhedralConvexShape
BU_Simplex1to4 implements feature based and implicit simplex of up to 4 vertices
(tetrahedron, triangle, line, vertex).
BU_Simplex1to4
public BU_Simplex1to4()
BU_Simplex1to4
public BU_Simplex1to4(Vector3f pt0)
BU_Simplex1to4
public BU_Simplex1to4(Vector3f pt0,
Vector3f pt1)
BU_Simplex1to4
public BU_Simplex1to4(Vector3f pt0,
Vector3f pt1,
Vector3f pt2)
BU_Simplex1to4
public BU_Simplex1to4(Vector3f pt0,
Vector3f pt1,
Vector3f pt2,
Vector3f pt3)
reset
public void reset()
getShapeType
public BroadphaseNativeType getShapeType()
- Specified by:
getShapeType
in class CollisionShape
addVertex
public void addVertex(Vector3f pt)
getNumVertices
public int getNumVertices()
- Specified by:
getNumVertices
in class PolyhedralConvexShape
getNumEdges
public int getNumEdges()
- Specified by:
getNumEdges
in class PolyhedralConvexShape
getEdge
public void getEdge(int i,
Vector3f pa,
Vector3f pb)
- Specified by:
getEdge
in class PolyhedralConvexShape
getVertex
public void getVertex(int i,
Vector3f vtx)
- Specified by:
getVertex
in class PolyhedralConvexShape
getNumPlanes
public int getNumPlanes()
- Specified by:
getNumPlanes
in class PolyhedralConvexShape
getPlane
public void getPlane(Vector3f planeNormal,
Vector3f planeSupport,
int i)
- Specified by:
getPlane
in class PolyhedralConvexShape
getIndex
public int getIndex(int i)
isInside
public boolean isInside(Vector3f pt,
float tolerance)
- Specified by:
isInside
in class PolyhedralConvexShape
getName
public String getName()
- Specified by:
getName
in class CollisionShape