public abstract class PolyhedralConvexShape extends ConvexInternalShape
MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
PolyhedralConvexShape() |
| Modifier and Type | Method and Description |
|---|---|
void |
batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors) |
void |
calculateLocalInertia(float mass,
Vector3f inertia) |
void |
getAabb(Transform trans,
Vector3f aabbMin,
Vector3f aabbMax)
getAabb's default implementation is brute force, expected derived classes to implement a fast dedicated version.
|
abstract void |
getEdge(int i,
Vector3f pa,
Vector3f pb) |
abstract int |
getNumEdges() |
abstract int |
getNumPlanes() |
abstract int |
getNumVertices() |
abstract void |
getPlane(Vector3f planeNormal,
Vector3f planeSupport,
int i) |
abstract void |
getVertex(int i,
Vector3f vtx) |
abstract boolean |
isInside(Vector3f pt,
float tolerance) |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f vec0,
Vector3f out) |
void |
recalcLocalAabb() |
void |
setLocalScaling(Vector3f scaling) |
getAabbSlow, getLocalScaling, getMargin, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, localGetSupportingVertex, setMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getName, getShapeType, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec0, Vector3f out)
localGetSupportingVertexWithoutMargin in class ConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class ConvexShapepublic void calculateLocalInertia(float mass,
Vector3f inertia)
calculateLocalInertia in class CollisionShapepublic void getAabb(Transform trans, Vector3f aabbMin, Vector3f aabbMax)
ConvexInternalShapegetAabb in class ConvexInternalShapepublic void recalcLocalAabb()
public void setLocalScaling(Vector3f scaling)
setLocalScaling in class ConvexInternalShapepublic abstract int getNumVertices()
public abstract int getNumEdges()
public abstract void getVertex(int i,
Vector3f vtx)
public abstract int getNumPlanes()
public abstract boolean isInside(Vector3f pt, float tolerance)