dchip.cpCollision

Undocumented in source.

Members

Aliases

CollisionFunc
alias CollisionFunc = int function(const cpShape* a, const cpShape* b, cpCollisionID* id, cpContact* arr)
Undocumented in source.
SupportPointFunc
alias SupportPointFunc = SupportPoint function(const cpShape* shape, const cpVect n)
Undocumented in source.

Functions

CircleSupportPoint
SupportPoint CircleSupportPoint(cpCircleShape* circle, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
CircleToCircle
int CircleToCircle(cpCircleShape* c1, cpCircleShape* c2, cpCollisionID* id, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
CircleToCircleQuery
int CircleToCircleQuery(cpVect p1, cpVect p2, cpFloat r1, cpFloat r2, cpHashValue hash, cpContact* con)
Undocumented in source. Be warned that the author may not have intended to support it.
CircleToPoly
int CircleToPoly(cpCircleShape* circle, cpPolyShape* poly, cpCollisionID* id, cpContact* con)
Undocumented in source. Be warned that the author may not have intended to support it.
CircleToSegment
int CircleToSegment(cpCircleShape* circleShape, cpSegmentShape* segmentShape, cpCollisionID* id, cpContact* con)
Undocumented in source. Be warned that the author may not have intended to support it.
ClipContacts
int ClipContacts(Edge ref_, Edge inc, ClosestPoints points, cpFloat nflip, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
ClosestDist
cpFloat ClosestDist(cpVect v0, cpVect v1)
Undocumented in source. Be warned that the author may not have intended to support it.
ClosestPointsNew
ClosestPoints ClosestPointsNew(MinkowskiPoint v0, MinkowskiPoint v1)
Undocumented in source. Be warned that the author may not have intended to support it.
ClosestT
cpFloat ClosestT(cpVect a, cpVect b)
Undocumented in source. Be warned that the author may not have intended to support it.
Contact1
void Contact1(cpFloat dist, cpVect a, cpVect b, cpFloat refr, cpFloat incr, cpVect n, cpHashValue hash, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
Contact2
int Contact2(cpVect refp, cpVect inca, cpVect incb, cpFloat refr, cpFloat incr, cpVect refn, cpVect n, cpHashValue hash, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
ContactPoints
int ContactPoints(Edge e1, Edge e2, ClosestPoints points, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
EPA
ClosestPoints EPA(SupportContext* ctx, MinkowskiPoint v0, MinkowskiPoint v1, MinkowskiPoint v2)
Undocumented in source. Be warned that the author may not have intended to support it.
EPARecurse
ClosestPoints EPARecurse(SupportContext* ctx, int count, MinkowskiPoint* hull, int iteration)
Undocumented in source. Be warned that the author may not have intended to support it.
EdgeNew
Edge EdgeNew(cpVect va, cpVect vb, cpHashValue ha, cpHashValue hb, cpFloat r)
Undocumented in source. Be warned that the author may not have intended to support it.
GJK
ClosestPoints GJK(SupportContext* ctx, cpCollisionID* id)
Undocumented in source. Be warned that the author may not have intended to support it.
GJKRecurse
ClosestPoints GJKRecurse(SupportContext* ctx, MinkowskiPoint v0, MinkowskiPoint v1, int iteration)
Undocumented in source. Be warned that the author may not have intended to support it.
LerpT
cpVect LerpT(cpVect a, cpVect b, cpFloat t)
Undocumented in source. Be warned that the author may not have intended to support it.
MinkowskiPointNew
MinkowskiPoint MinkowskiPointNew(SupportPoint a, SupportPoint b)
Undocumented in source. Be warned that the author may not have intended to support it.
PolySupportPoint
SupportPoint PolySupportPoint(cpPolyShape* poly, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
PolySupportPointIndex
int PolySupportPointIndex(int count, cpVect* verts, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
PolyToPoly
int PolyToPoly(cpPolyShape* poly1, cpPolyShape* poly2, cpCollisionID* id, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
SegmentSupportPoint
SupportPoint SegmentSupportPoint(cpSegmentShape* seg, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
SegmentToPoly
int SegmentToPoly(cpSegmentShape* seg, cpPolyShape* poly, cpCollisionID* id, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
SegmentToSegment
int SegmentToSegment(cpSegmentShape* seg1, cpSegmentShape* seg2, cpCollisionID* id, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
ShapePoint
SupportPoint ShapePoint(cpShape* shape, int i)
Undocumented in source. Be warned that the author may not have intended to support it.
Support
MinkowskiPoint Support(SupportContext* ctx, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
SupportEdgeForPoly
Edge SupportEdgeForPoly(cpPolyShape* poly, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
SupportEdgeForSegment
Edge SupportEdgeForSegment(cpSegmentShape* seg, cpVect n)
Undocumented in source. Be warned that the author may not have intended to support it.
SupportPointNew
SupportPoint SupportPointNew(cpVect p, cpCollisionID id)
Undocumented in source. Be warned that the author may not have intended to support it.
_initModuleCtor_cpCollision
void _initModuleCtor_cpCollision()
Undocumented in source. Be warned that the author may not have intended to support it.
cpCollideShapes
int cpCollideShapes(cpShape* a, cpShape* b, cpCollisionID* id, cpContact* arr)
Undocumented in source. Be warned that the author may not have intended to support it.
cpEnableSegmentToSegmentCollisions
void cpEnableSegmentToSegmentCollisions()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

ENABLE_CACHING
enum ENABLE_CACHING;
Undocumented in source.
MAX_EPA_ITERATIONS
enum MAX_EPA_ITERATIONS;
Undocumented in source.
MAX_GJK_ITERATIONS
enum MAX_GJK_ITERATIONS;
Undocumented in source.
WARN_EPA_ITERATIONS
enum WARN_EPA_ITERATIONS;
Undocumented in source.
WARN_GJK_ITERATIONS
enum WARN_GJK_ITERATIONS;
Undocumented in source.

Static variables

builtinCollisionFuncs
CollisionFunc[9] builtinCollisionFuncs;
Undocumented in source.
colfuncs
CollisionFunc* colfuncs;
Undocumented in source.
segmentCollisions
CollisionFunc[9] segmentCollisions;
Undocumented in source.

Structs

ClosestPoints
struct ClosestPoints
Undocumented in source.
Edge
struct Edge
Undocumented in source.
EdgePoint
struct EdgePoint
Undocumented in source.
MinkowskiPoint
struct MinkowskiPoint
Undocumented in source.
SupportContext
struct SupportContext
Undocumented in source.
SupportPoint
struct SupportPoint
Undocumented in source.

Meta