com.bulletphysics.collision.shapes
Class BU_Simplex1to4

java.lang.Object
  extended by com.bulletphysics.collision.shapes.CollisionShape
      extended by com.bulletphysics.collision.shapes.ConvexShape
          extended by com.bulletphysics.collision.shapes.ConvexInternalShape
              extended by com.bulletphysics.collision.shapes.PolyhedralConvexShape
                  extended by 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).


Field Summary
 
Fields inherited from class com.bulletphysics.collision.shapes.ConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS
 
Constructor Summary
BU_Simplex1to4()
           
BU_Simplex1to4(Vector3f pt0)
           
BU_Simplex1to4(Vector3f pt0, Vector3f pt1)
           
BU_Simplex1to4(Vector3f pt0, Vector3f pt1, Vector3f pt2)
           
BU_Simplex1to4(Vector3f pt0, Vector3f pt1, Vector3f pt2, Vector3f pt3)
           
 
Method Summary
 void addVertex(Vector3f pt)
           
 void getEdge(int i, Vector3f pa, Vector3f pb)
           
 int getIndex(int i)
           
 String getName()
           
 int getNumEdges()
           
 int getNumPlanes()
           
 int getNumVertices()
           
 void getPlane(Vector3f planeNormal, Vector3f planeSupport, int i)
           
 BroadphaseNativeType getShapeType()
           
 void getVertex(int i, Vector3f vtx)
           
 boolean isInside(Vector3f pt, float tolerance)
           
 void reset()
           
 
Methods inherited from class com.bulletphysics.collision.shapes.PolyhedralConvexShape
batchedUnitVectorGetSupportingVertexWithoutMargin, calculateLocalInertia, getAabb, localGetSupportingVertexWithoutMargin, recalcLocalAabb, setLocalScaling
 
Methods inherited from class com.bulletphysics.collision.shapes.ConvexInternalShape
getAabbSlow, getLocalScaling, getMargin, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, localGetSupportingVertex, setMargin
 
Methods inherited from class com.bulletphysics.collision.shapes.CollisionShape
calculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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