public class TriangleShape extends PolyhedralConvexShape
| Modifier and Type | Field and Description |
|---|---|
Vector3f[] |
vertices1 |
MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
TriangleShape() |
TriangleShape(Vector3f p0,
Vector3f p1,
Vector3f p2) |
| Modifier and Type | Method and Description |
|---|---|
void |
batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors) |
void |
calcNormal(Vector3f normal) |
void |
calculateLocalInertia(float mass,
Vector3f inertia) |
void |
getAabb(Transform t,
Vector3f aabbMin,
Vector3f aabbMax)
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
|
void |
getEdge(int i,
Vector3f pa,
Vector3f pb) |
String |
getName() |
int |
getNumEdges() |
int |
getNumPlanes() |
int |
getNumPreferredPenetrationDirections() |
int |
getNumVertices() |
void |
getPlane(Vector3f planeNormal,
Vector3f planeSupport,
int i) |
void |
getPlaneEquation(int i,
Vector3f planeNormal,
Vector3f planeSupport) |
void |
getPreferredPenetrationDirection(int index,
Vector3f penetrationVector) |
BroadphaseNativeType |
getShapeType() |
void |
getVertex(int index,
Vector3f vert) |
Vector3f |
getVertexPtr(int index) |
void |
init(Vector3f p0,
Vector3f p1,
Vector3f p2) |
boolean |
isInside(Vector3f pt,
float tolerance) |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f dir,
Vector3f out) |
recalcLocalAabb, setLocalScalinggetAabbSlow, getLocalScaling, getMargin, localGetSupportingVertex, setMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic final Vector3f[] vertices1
public int getNumVertices()
getNumVertices in class PolyhedralConvexShapepublic Vector3f getVertexPtr(int index)
public void getVertex(int index,
Vector3f vert)
getVertex in class PolyhedralConvexShapepublic BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic int getNumEdges()
getNumEdges in class PolyhedralConvexShapepublic void getEdge(int i,
Vector3f pa,
Vector3f pb)
getEdge in class PolyhedralConvexShapepublic void getAabb(Transform t, Vector3f aabbMin, Vector3f aabbMax)
ConvexInternalShapegetAabb in class PolyhedralConvexShapepublic Vector3f localGetSupportingVertexWithoutMargin(Vector3f dir, Vector3f out)
localGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic void getPlane(Vector3f planeNormal, Vector3f planeSupport, int i)
getPlane in class PolyhedralConvexShapepublic int getNumPlanes()
getNumPlanes in class PolyhedralConvexShapepublic void calcNormal(Vector3f normal)
public void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class PolyhedralConvexShapepublic boolean isInside(Vector3f pt, float tolerance)
isInside in class PolyhedralConvexShapepublic String getName()
getName in class CollisionShapepublic int getNumPreferredPenetrationDirections()
getNumPreferredPenetrationDirections in class ConvexInternalShapepublic void getPreferredPenetrationDirection(int index,
Vector3f penetrationVector)
getPreferredPenetrationDirection in class ConvexInternalShape