public class ConvexHullShape extends PolyhedralConvexShape
MAX_PREFERRED_PENETRATION_DIRECTIONS| Constructor and Description |
|---|
ConvexHullShape(ObjectArrayList<Vector3f> points)
TODO: This constructor optionally takes in a pointer to points.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(Vector3f point) |
void |
batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors,
Vector3f[] supportVerticesOut,
int numVectors) |
void |
getEdge(int i,
Vector3f pa,
Vector3f pb) |
String |
getName() |
int |
getNumEdges() |
int |
getNumPlanes() |
int |
getNumPoints() |
int |
getNumVertices()
Currently just for debugging (drawing), perhaps future support for algebraic continuous collision detection.
|
void |
getPlane(Vector3f planeNormal,
Vector3f planeSupport,
int i) |
ObjectArrayList<Vector3f> |
getPoints() |
BroadphaseNativeType |
getShapeType() |
void |
getVertex(int i,
Vector3f vtx) |
boolean |
isInside(Vector3f pt,
float tolerance) |
Vector3f |
localGetSupportingVertex(Vector3f vec,
Vector3f out) |
Vector3f |
localGetSupportingVertexWithoutMargin(Vector3f vec0,
Vector3f out) |
void |
setLocalScaling(Vector3f scaling) |
calculateLocalInertia, getAabb, recalcLocalAabbgetAabbSlow, getLocalScaling, getMargin, getNumPreferredPenetrationDirections, getPreferredPenetrationDirection, setMargincalculateTemporalAabb, getAngularMotionDisc, getBoundingSphere, getUserPointer, isCompound, isConcave, isConvex, isInfinite, isPolyhedral, setUserPointerpublic ConvexHullShape(ObjectArrayList<Vector3f> points)
public void setLocalScaling(Vector3f scaling)
setLocalScaling in class PolyhedralConvexShapepublic void addPoint(Vector3f point)
public ObjectArrayList<Vector3f> getPoints()
public int getNumPoints()
public Vector3f localGetSupportingVertexWithoutMargin(Vector3f vec0, Vector3f out)
localGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic void batchedUnitVectorGetSupportingVertexWithoutMargin(Vector3f[] vectors, Vector3f[] supportVerticesOut, int numVectors)
batchedUnitVectorGetSupportingVertexWithoutMargin in class PolyhedralConvexShapepublic Vector3f localGetSupportingVertex(Vector3f vec, Vector3f out)
localGetSupportingVertex in class ConvexInternalShapepublic int getNumVertices()
getNumVertices in class PolyhedralConvexShapepublic int getNumEdges()
getNumEdges in class PolyhedralConvexShapepublic void getEdge(int i,
Vector3f pa,
Vector3f pb)
getEdge in class PolyhedralConvexShapepublic void getVertex(int i,
Vector3f vtx)
getVertex in class PolyhedralConvexShapepublic int getNumPlanes()
getNumPlanes in class PolyhedralConvexShapepublic void getPlane(Vector3f planeNormal, Vector3f planeSupport, int i)
getPlane in class PolyhedralConvexShapepublic boolean isInside(Vector3f pt, float tolerance)
isInside in class PolyhedralConvexShapepublic BroadphaseNativeType getShapeType()
getShapeType in class CollisionShapepublic String getName()
getName in class CollisionShape