C# Класс CocosPhysics.Chipmunk.Physics

Показать файл Открыть проект

Открытые методы

Метод Описание
cpInitChipmunk ( ) : void
cpLoopIndexes ( cpVect verts, int count, int &start, int &end ) : void
cpMessage ( string condition, string file, int line, bool isError, bool isHardError, string message ) : void
cpRecenterPoly ( int numVerts, cpVect verts ) : void
preStep ( cpSlideJoint joint, double dt ) : void

Приватные методы

Метод Описание
CP_DefineClassGetter ( cpSlideJoint cpSlideJoint )
CP_DefineShapeGetter ( cpSegmentShape cpVect, a A ) : System
CP_DefineShapeGetter ( cpSegmentShape cpVect, b B ) : System
CP_DefineShapeGetter ( cpSegmentShape cpSegmentShape, double r, Radius Radius ) : System
CP_DefineShapeGetter ( cpSegmentShape cpVect, n Normal ) : System
Klass ( ) : cpSpatialIndexClass
PointQuery ( PointQueryContext &context, cpShape shape, object data ) : void
PostStepDoNothing ( cpSpace space, object obj, object data ) : void
QHullPartition ( cpVect verts, int count, cpVect a, cpVect b, double tol ) : int
QHullReduce ( double tol, cpVect verts, int offset, int count, cpVect a, cpVect pivot, cpVect b, cpVect result, int roffset ) : int
SWAP ( cpVect &a, cpVect &b ) : void
alwaysCollide ( cpArbiter arb, cpSpace space, object data ) : bool
applyCachedImpulse ( cpSlideJoint joint, double dt_coef ) : void
applyImpulse ( cpSlideJoint joint, double dt ) : void
arbiterSetEql ( cpShape shapes, cpArbiter arb ) : bool
circle2circle ( cpShape shape1, cpShape shape2, cpContact arr ) : int
circle2circleQuery ( cpVect p1, cpVect p2, double r1, double r2, cpContact con ) : int
circle2poly ( cpShape shape1, cpShape shape2, cpContact con ) : int
circle2segment ( cpCircleShape circleShape, cpSegmentShape segmentShape, cpContact con ) : int
circleSegmentQuery ( cpShape shape, cpVect center, double r, cpVect a, cpVect b, cpSegmentQueryInfo info ) : void
clearTable ( cpSpaceHash hash ) : void
clearTableCell ( cpSpaceHash hash, int idx ) : void
containsHandle ( cpSpaceHashBin bin, cpHandle hand ) : bool
cpArbiterThreadForBody ( arb body )
cpArbiterThreadForBody ( prev body )
cpAreaForCircle ( double r1, double r2 ) : double
cpAreaForPoly ( int numVerts, cpVect verts ) : double
cpAreaForSegment ( cpVect a, cpVect b, double r ) : double
cpBBWrapVect ( cpBB bb, cpVect v ) : cpVect
cpBodyAddShape ( cpBody body, cpShape shape ) : void
cpBodyAlloc ( ) : cpBody
cpBodyApplyForce ( cpBody body, cpVect force, cpVect r ) : void
cpBodyApplyImpulse ( cpBody body, cpVect j, cpVect r ) : void
cpBodyDestroy ( cpBody body ) : void
cpBodyEachArbiter ( cpBody body, cpBodyArbiterIteratorFunc func, object data ) : void
cpBodyEachConstraint ( cpBody body, cpBodyConstraintIteratorFunc func, object data ) : void
cpBodyEachShape ( cpBody body, cpBodyShapeIteratorFunc func, object data ) : void
cpBodyFree ( cpBody body ) : void
cpBodyGetVelAtLocalPoint ( cpBody body, cpVect point ) : cpVect
cpBodyGetVelAtPoint ( cpBody body, cpVect r ) : cpVect
cpBodyGetVelAtWorldPoint ( cpBody body, cpVect point ) : cpVect
cpBodyInit ( cpBody body, double m, double i ) : cpBody
cpBodyInitStatic ( cpBody body ) : cpBody
cpBodyNew ( double m, double i ) : cpBody
cpBodyNewStatic ( ) : cpBody
cpBodyRemoveConstraint ( cpBody body, cpConstraint constraint ) : void
cpBodyRemoveShape ( cpBody body, cpShape shape ) : void
cpBodyResetForces ( cpBody body ) : void
cpBodySetAngle ( cpBody body, double angle ) : void
cpBodySetMass ( cpBody body, double mass ) : void
cpBodySetMoment ( cpBody body, double moment ) : void
cpBodySetPos ( cpBody body, cpVect pos ) : void
cpBodyUpdatePosition ( cpBody body, double dt ) : void
cpBodyUpdateVelocity ( cpBody body, cpVect gravity, double damping, double dt ) : void
cpBoxShapeInit ( cpPolyShape poly, cpBody body, double width, double height ) : cpPolyShape
cpBoxShapeInit2 ( cpPolyShape poly, cpBody body, cpBB box ) : cpPolyShape
cpBoxShapeNew ( cpBody body, double width, double height ) : cpShape
cpBoxShapeNew2 ( cpBody body, cpBB box ) : cpShape
cpCentroidForPoly ( int numVerts, cpVect verts ) : cpVect
cpCicleShapeNearestPointQuery ( cpCircleShape circle, cpVect p, cpNearestPointQueryInfo info ) : void
cpCircleShapeCacheData ( cpCircleShape circle, cpVect p, cpVect rot ) : cpBB
cpCircleShapeInit ( cpCircleShape circle, cpBody body, double radius, cpVect offset ) : cpCircleShape
cpCircleShapeNew ( cpBody body, double radius, cpVect offset ) : cpShape
cpCircleShapeSegmentQuery ( cpCircleShape circle, cpVect a, cpVect b, cpSegmentQueryInfo info ) : void
cpCircleShapeSetOffset ( cpShape shape, cpVect offset ) : void
cpCircleShapeSetRadius ( cpShape shape, double radius ) : void
cpContactInit ( cpContact con, cpVect p, cpVect n, double dist, cpHashValue hash ) : cpContact
cpConvexHull ( int count, cpVect verts, int offset, cpVect result, int &first, double tol ) : int
cpHandleInit ( cpHandle hand, object obj ) : cpHandle*
cpHandleRelease ( cpHandle hand, cpArray pooledHandles ) : void
cpHandleRetain ( cpHandle hand ) : void
cpMomentForBox ( double m, double width, double height ) : double
cpMomentForBox2 ( double m, cpBB box ) : double
cpMomentForCircle ( double m, double r1, double r2, cpVect offset ) : double
cpMomentForPoly ( double m, int numVerts, cpVect verts, cpVect offset ) : double
cpMomentForSegment ( double m, cpVect a, cpVect b ) : double
cpPolyShapeCacheData ( cpPolyShape poly, cpVect p, cpVect rot ) : cpBB
cpPolyShapeDestroy ( cpPolyShape poly ) : void
cpPolyShapeGetNumVerts ( cpShape shape ) : int
cpPolyShapeGetVert ( cpShape shape, int idx ) : cpVect
cpPolyShapeInit ( cpPolyShape poly, cpBody body, int numVerts, cpVect verts, cpVect offset ) : cpPolyShape
cpPolyShapeNearestPointQuery ( cpPolyShape poly, cpVect p, cpNearestPointQueryInfo info ) : void
cpPolyShapeNew ( cpBody body, int numVerts, cpVect verts, cpVect offset ) : cpShape
cpPolyShapeSegmentQuery ( cpPolyShape poly, cpVect a, cpVect b, cpSegmentQueryInfo info ) : void
cpPolyShapeSetVerts ( cpShape shape, int numVerts, cpVect verts, cpVect offset ) : void
cpPolyShapeTransformAxes ( cpPolyShape poly, cpVect p, cpVect rot ) : void
cpPolyShapeTransformVerts ( cpPolyShape poly, cpVect p, cpVect rot ) : cpBB
cpPolyValidate ( cpVect verts, int numVerts ) : bool
cpResetShapeIdCounter ( ) : void
cpSegmentShapeCacheData ( cpSegmentShape seg, cpVect p, cpVect rot ) : cpBB
cpSegmentShapeInit ( cpSegmentShape seg, cpBody body, cpVect a, cpVect b, double r ) : cpSegmentShape
cpSegmentShapeNearestPointQuery ( cpSegmentShape seg, cpVect p, cpNearestPointQueryInfo info ) : void
cpSegmentShapeNew ( cpBody body, cpVect a, cpVect b, double r ) : cpShape
cpSegmentShapeSegmentQuery ( cpSegmentShape seg, cpVect a, cpVect b, cpSegmentQueryInfo info ) : void
cpSegmentShapeSetEndpoints ( cpShape shape, cpVect a, cpVect b ) : void
cpSegmentShapeSetNeighbors ( cpShape shape, cpVect prev, cpVect next ) : void
cpSegmentShapeSetRadius ( cpShape shape, double radius ) : void
cpShapeCacheBB ( cpShape shape ) : cpBB
cpShapeDestroy ( cpShape shape ) : void
cpShapeFree ( cpShape shape ) : void
cpShapeInit ( cpShape shape, cpShapeClass klass, cpBody body ) : cpShape
cpShapeNearestPointQuery ( cpShape shape, cpVect p, cpNearestPointQueryInfo &info ) : double
cpShapePointQuery ( cpShape shape, cpVect p ) : bool
cpShapeSegmentQuery ( cpShape shape, cpVect a, cpVect b, cpSegmentQueryInfo &info ) : bool
cpShapeSetBody ( cpShape shape, cpBody body ) : void
cpShapeUpdate ( cpShape shape, cpVect pos, cpVect rot ) : cpBB
cpSlideJointAlloc ( )
cpSlideJointInit ( cpSlideJoint joint, cpBody a, cpBody b, cpVect anchr1, cpVect anchr2, double min, double max ) : cpSlideJoint*
cpSlideJointNew ( cpBody a, cpBody b, cpVect anchr1, cpVect anchr2, double min, double max ) : cpConstraint
cpSpaceActivateBody ( cpSpace space, cpBody body ) : void
cpSpaceAddPostStepCallback ( cpSpace space, cpPostStepFunc func, object key, object data ) : bool
cpSpaceAlloc ( ) : cpSpace
cpSpaceGetPostStepCallback ( cpSpace space, object key ) : cpPostStepCallback*
cpSpaceHashAlloc ( ) : cpSpaceHash*
cpSpaceHashAllocTable ( cpSpaceHash hash, int numcells ) : void
cpSpaceHashDestroy ( cpSpaceHash hash ) : void
cpSpaceHashInit ( cpSpaceHash hash, double celldim, int numcells, cpSpatialIndexBBFunc bbfunc, cpSpatialIndex staticIndex ) : cpSpatialIndex*
cpSpaceHashInsert ( cpSpaceHash hash, object obj, cpHashValue hashid ) : void
cpSpaceHashNew ( double celldim, int cells, cpSpatialIndexBBFunc bbfunc, cpSpatialIndex staticIndex ) : cpSpatialIndex*
cpSpaceHashRehash ( cpSpaceHash hash ) : void
cpSpaceHashRehashObject ( cpSpaceHash hash, object obj, cpHashValue hashid ) : void
cpSpaceHashRemove ( cpSpaceHash hash, object obj, cpHashValue hashid ) : void
cpSpaceInit ( cpSpace space ) : cpSpace*
cpSpaceLock ( space space ) : System
cpSpaceLock ( cpSpace space ) : void
cpSpacePointQuery ( cpSpace space, cpVect point, cpLayers layers, cpGroup group, cpSpacePointQueryFunc func, object data ) : void
cpSpaceUnlock ( cpSpace space, bool runPostStep ) : void
cpSpatialIndexFree ( cpSpatialIndex index ) : void
cpSpatialIndexInit ( cpSpatialIndex index, cpSpatialIndexClass klass, cpSpatialIndexBBFunc bbfunc, cpSpatialIndex staticIndex ) : cpSpatialIndex*
cpSpatialIndexQuery ( space activeShapes, context &bb ) : System
cpSpatialIndexQueryFunc ( PointQuery PointQuery ) : System
cpvslerp ( cpVect v1, cpVect v2, double t ) : cpVect
cpvslerpconst ( cpVect v1, cpVect v2, double a ) : cpVect
cpvstr ( cpVect v ) : string
filterConstraints ( cpConstraint node, cpBody body, cpConstraint filter ) : cpConstraint
findMSA ( cpPolyShape poly, cpSplittingPlane planes, int num, double min_out ) : int
findPointsBehindSeg ( cpContact arr, int num, cpSegmentShape seg, cpPolyShape poly, double pDist, double coef ) : void
findVerts ( cpContact arr, cpPolyShape poly1, cpPolyShape poly2, cpVect n, double dist ) : int
findVertsFallback ( cpContact arr, cpPolyShape poly1, cpPolyShape poly2, cpVect n, double dist ) : int
floor_int ( double f ) : int
freeWrap ( object ptr, object unused ) : void
getEmptyBin ( cpSpaceHash hash ) : cpSpaceHashBin*
getImpulse ( cpConstraint joint ) : double
handleSetEql ( object obj, cpHandle hand ) : int
handleSetTrans ( object obj, cpSpaceHash hash ) : object
handlerSetEql ( cpCollisionHandler check, cpCollisionHandler pair ) : bool
handlerSetTrans ( cpCollisionHandler handler, object unused ) : object
hashHandle ( cpSpaceHash hash, cpHandle hand, cpBB bb ) : void
hash_func ( cpHashValue x, cpHashValue y, cpHashValue n ) : cpHashValue
nextContactPoint ( cpContact arr, int numPtr ) : cpContact
nothing ( cpArbiter arb, cpSpace space, object data ) : void
poly2poly ( cpShape shape1, cpShape shape2, cpContact arr ) : int
printf ( ) : System
recycleBin ( cpSpaceHash hash, cpSpaceHashBin bin ) : void
rehash_helper ( cpHandle hand, cpSpaceHash hash ) : void
seg2poly ( cpShape shape1, cpShape shape2, cpContact arr ) : int
seg2seg ( cpShape shape1, cpShape shape2, cpContact con ) : int
segValueOnAxis ( cpSegmentShape seg, cpVect n, double d ) : double
setAngle ( cpBody body, double angle ) : void
setUpVerts ( cpPolyShape poly, int numVerts, cpVect verts, cpVect offset ) : void
shapeVelocityFunc ( cpShape shape ) : cpVect
unthreadHelper ( cpArbiter arb, cpBody body ) : void

Описание методов

cpInitChipmunk() публичный Метод

public cpInitChipmunk ( ) : void
Результат void

cpLoopIndexes() публичный Метод

public cpLoopIndexes ( cpVect verts, int count, int &start, int &end ) : void
verts cpVect
count int
start int
end int
Результат void

cpMessage() публичный статический Метод

public static cpMessage ( string condition, string file, int line, bool isError, bool isHardError, string message ) : void
condition string
file string
line int
isError bool
isHardError bool
message string
Результат void

cpRecenterPoly() публичный Метод

public cpRecenterPoly ( int numVerts, cpVect verts ) : void
numVerts int
verts cpVect
Результат void

preStep() публичный статический Метод

public static preStep ( cpSlideJoint joint, double dt ) : void
joint cpSlideJoint
dt double
Результат void