dchip.cpShape

Undocumented in source.

Members

Aliases

cpShapeCacheDataImpl
alias cpShapeCacheDataImpl = cpBB function(cpShape* shape, cpVect p, cpVect rot)
Undocumented in source.
cpShapeDestroyImpl
alias cpShapeDestroyImpl = void function(cpShape* shape)
Undocumented in source.
cpShapeNearestPointQueryImpl
alias cpShapeNearestPointQueryImpl = void function(cpShape* shape, cpVect p, cpNearestPointQueryInfo* info)
Undocumented in source.
cpShapeSegmentQueryImpl
alias cpShapeSegmentQueryImpl = void function(cpShape* shape, cpVect a, cpVect b, cpSegmentQueryInfo* info)
Undocumented in source.

Enums

cpShapeType
enum cpShapeType

@private

Functions

_initModuleCtor_cpShape
void _initModuleCtor_cpShape()
Undocumented in source. Be warned that the author may not have intended to support it.
cpCicleShapeNearestPointQuery
void cpCicleShapeNearestPointQuery(cpCircleShape* circle, cpVect p, cpNearestPointQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeAlloc
cpCircleShape* cpCircleShapeAlloc()
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeCacheData
cpBB cpCircleShapeCacheData(cpCircleShape* circle, cpVect p, cpVect rot)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeInit
cpCircleShape* cpCircleShapeInit(cpCircleShape* circle, cpBody* body_, cpFloat radius, cpVect offset)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeNew
cpShape* cpCircleShapeNew(cpBody* body_, cpFloat radius, cpVect offset)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeSegmentQuery
void cpCircleShapeSegmentQuery(cpCircleShape* circle, cpVect a, cpVect b, cpSegmentQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeSetOffset
void cpCircleShapeSetOffset(cpShape* shape, cpVect offset)
Undocumented in source. Be warned that the author may not have intended to support it.
cpCircleShapeSetRadius
void cpCircleShapeSetRadius(cpShape* shape, cpFloat radius)
Undocumented in source. Be warned that the author may not have intended to support it.
cpResetShapeIdCounter
void cpResetShapeIdCounter()
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentQueryHitDist
cpFloat cpSegmentQueryHitDist(cpVect start, cpVect end, cpSegmentQueryInfo info)

Get the hit distance for a segment query.

cpSegmentQueryHitPoint
cpVect cpSegmentQueryHitPoint(cpVect start, cpVect end, cpSegmentQueryInfo info)

Get the hit point for a segment query.

cpSegmentShapeAlloc
cpSegmentShape* cpSegmentShapeAlloc()
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeCacheData
cpBB cpSegmentShapeCacheData(cpSegmentShape* seg, cpVect p, cpVect rot)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeInit
cpSegmentShape* cpSegmentShapeInit(cpSegmentShape* seg, cpBody* body_, cpVect a, cpVect b, cpFloat r)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeNearestPointQuery
void cpSegmentShapeNearestPointQuery(cpSegmentShape* seg, cpVect p, cpNearestPointQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeNew
cpShape* cpSegmentShapeNew(cpBody* body_, cpVect a, cpVect b, cpFloat r)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeSegmentQuery
void cpSegmentShapeSegmentQuery(cpSegmentShape* seg, cpVect a, cpVect b, cpSegmentQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeSetEndpoints
void cpSegmentShapeSetEndpoints(cpShape* shape, cpVect a, cpVect b)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeSetNeighbors
void cpSegmentShapeSetNeighbors(cpShape* shape, cpVect prev, cpVect next)
Undocumented in source. Be warned that the author may not have intended to support it.
cpSegmentShapeSetRadius
void cpSegmentShapeSetRadius(cpShape* shape, cpFloat radius)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeCacheBB
cpBB cpShapeCacheBB(cpShape* shape)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeDestroy
void cpShapeDestroy(cpShape* shape)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeFree
void cpShapeFree(cpShape* shape)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeInit
cpShape* cpShapeInit(cpShape* shape, cpShapeClass* klass, cpBody* body_)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeNearestPointQuery
cpFloat cpShapeNearestPointQuery(cpShape* shape, cpVect p, cpNearestPointQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapePointQuery
cpBool cpShapePointQuery(cpShape* shape, cpVect p)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeSegmentQuery
cpBool cpShapeSegmentQuery(cpShape* shape, cpVect a, cpVect b, cpSegmentQueryInfo* info)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeSetBody
void cpShapeSetBody(cpShape* shape, cpBody* body_)
Undocumented in source. Be warned that the author may not have intended to support it.
cpShapeUpdate
cpBB cpShapeUpdate(cpShape* shape, cpVect pos, cpVect rot)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin _ExportEnumMembers!cpShapeType
__anonymous
mixin CP_DefineShapeStructGetter!(cpSpace*, "space", "Space")
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructGetter!(cpBody*, "body_", "Body")
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructGetter!(cpBB, "bb", "BB")
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpBool, "sensor", "Sensor", cpTrue)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpFloat, "e", "Elasticity", cpFalse)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpFloat, "u", "Friction", cpTrue)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpVect, "surface_v", "SurfaceVelocity", cpTrue)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpDataPointer, "data", "UserData", cpFalse)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpCollisionType, "collision_type", "CollisionType", cpTrue)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpGroup, "group", "Group", cpTrue)
Undocumented in source.
__anonymous
mixin CP_DefineShapeStructProperty!(cpLayers, "layers", "Layers", cpTrue)
Undocumented in source.

Mixin templates

CP_DeclareShapeGetter
mixintemplate CP_DeclareShapeGetter(type, string struct_, string member, string name)
Undocumented in source.
CP_DefineShapeStructGetter
mixintemplate CP_DefineShapeStructGetter(type, string member, string name)
Undocumented in source.
CP_DefineShapeStructProperty
mixintemplate CP_DefineShapeStructProperty(type, string member, string name, bool activates)
Undocumented in source.
CP_DefineShapeStructSetter
mixintemplate CP_DefineShapeStructSetter(type, string member, string name, bool activates)
Undocumented in source.

Static variables

cpCircleShapeClass
cpShapeClass cpCircleShapeClass;
Undocumented in source.
cpSegmentShapeClass
cpShapeClass cpSegmentShapeClass;
Undocumented in source.
cpShapeIDCounter
cpHashValue cpShapeIDCounter;
Undocumented in source.

Structs

cpCircleShape
struct cpCircleShape

@private

cpNearestPointQueryInfo
struct cpNearestPointQueryInfo

The cpShape struct defines the shape of a rigid body_. Nearest point query info struct.

cpSegmentQueryInfo
struct cpSegmentQueryInfo

Segment query info struct.

cpSegmentShape
struct cpSegmentShape

@private

cpShape
struct cpShape

Opaque collision shape struct.

cpShapeClass
struct cpShapeClass

@private

Meta