chipmunk.ffi vocabulary
Factor handbook > Vocabulary index


Summary
chipmunk.ffi vocabulary

Words

Tuple classes
ClassSuperclassSlots
cpArbiter struct
cpArray struct
cpBB struct
cpBody struct
cpCircleShape struct
cpCollisionHandler struct
cpConstraint struct
cpConstraintClass struct
cpContact struct
cpDampedRotarySpring struct
cpDampedSpring struct
cpGearJoint struct
cpGrooveJoint struct
cpHandle struct
cpHashSet struct
cpHashSetBin struct
cpPinJoint struct
cpPivotJoint struct
cpPolyShape struct
cpPolyShapeAxis struct
cpRatchetJoint struct
cpRotaryLimitJoint struct
cpSegmentQueryInfo struct
cpSegmentShape struct
cpShape struct
cpShapeClass struct
cpSimpleMotor struct
cpSlideJoint struct
cpSpace struct
cpSpaceHash struct
cpSpaceHashBin struct
cpVect struct


Singleton classes
CP_CIRCLE_SHAPE
CP_NUM_SHAPES
CP_POLY_SHAPE
CP_SEGMENT_SHAPE
cpArbiterStateFirstColl
cpArbiterStateIgnore
cpArbiterStateNormal


Symbol words
cpArbiterState
cpCollisionType
cpDataPointer
cpFloat
cpGroup
cpHashValue
cpLayers
cpShapeType


Ordinary words
WordStack effect
<cpArbiterState>( number -- enum )
<cpShapeType>( number -- enum )
CP_ALL_LAYERS( -- value )
CP_NO_GROUP( -- value )
cacheData_cb( quot -- alien )
cpApplyDampedSpring( a b anchr1 anchr2 rlen k dmp dt -- )
cpArbiterAlloc( -- cpArbiter* )
cpArbiterApplyCachedImpulse( arb -- )
cpArbiterApplyImpulse( arb eCoef -- )
cpArbiterDestroy( arb -- )
cpArbiterFree( arb -- )
cpArbiterGetNormal( arb: cpArbiter i -- n: cpVect )
cpArbiterGetPoint( arb: cpArbiter i -- p: cpVect )
cpArbiterGetShapes( arb: cpArbiter -- a: cpShape b: cpShape )
cpArbiterIgnore( arb -- )
cpArbiterInit( arb a b -- cpArbiter* )
cpArbiterIsFirstContact( arb: cpArbiter -- ? )
cpArbiterNew( a b -- cpArbiter* )
cpArbiterPreStep( arb dt_inv -- )
cpArbiterTotalImpulse( arb -- cpVect )
cpArbiterTotalImpulseWithFriction( arb -- cpVect )
cpArbiterUpdate( arb contacts numContacts handler a b -- )
cpArrayAlloc( -- cpArray* )
cpArrayContains( arr ptr -- int )
cpArrayDeleteIndex( arr idx -- )
cpArrayDeleteObj( arr obj -- )
cpArrayDestroy( arr -- )
cpArrayEach( arr iterFunc data -- )
cpArrayFree( arr -- )
cpArrayInit( arr size -- cpArray* )
cpArrayIter( quot -- alien )
cpArrayNew( size -- cpArray* )
cpArrayPush( arr object -- )
cpBBClampVect( bb v -- cpVect )
cpBBNew( l b r t -- cpbb: cpBB )
cpBBWrapVect( bb v -- cpVect )
cpBBcontainsBB( bb: cpBB other: cpBB -- ? )
cpBBcontainsVect( bb: cpBB v: cpVect -- ? )
cpBBexpand( bb: cpBB v: cpVect -- b: cpBB )
cpBBintersects( a: cpBB b: cpBB -- ? )
cpBBmerge( a: cpBB b: cpBB -- c: cpBB )
cpBodyAlloc( -- cpBody* )
cpBodyApplyForce( body f r -- )
cpBodyApplyImpulse( body: cpBody j: cpVect r: cpVect -- )
cpBodyDestroy( body -- )
cpBodyFree( body -- )
cpBodyInit( body m i -- cpBody* )
cpBodyLocal2World( body: cpBody v: cpVect -- v2: cpVect )
cpBodyNew( m i -- cpBody* )
cpBodyPositionFunc( quot -- alien )
cpBodyResetForces( body -- )
cpBodySetAngle( body a -- )
cpBodySetMass( body m -- )
cpBodySetMoment( body i -- )
cpBodySlew( body pos dt -- )
cpBodyUpdatePosition( body dt -- )
cpBodyUpdateVelocity( body gravity damping dt -- )
cpBodyVelocityFunc( quot -- alien )
cpBodyWorld2Local( body: cpBody v: cpVect -- v2: cpVect )
cpCircleShapeAlloc( -- cpCircleShape* )
cpCircleShapeInit( circle body radius offset -- cpCircleShape* )
cpCircleShapeNew( body radius offset -- cpShape* )
cpCollideShapes( a b arr -- int )
cpCollisionBeginFunc( quot -- alien )
cpCollisionPostSolveFunc( quot -- alien )
cpCollisionPreSolveFunc( quot -- alien )
cpCollisionSeparateFunc( quot -- alien )
cpConstraintApplyImpulseFunction( quot -- alien )
cpConstraintCheckCast( constraint klass -- )
cpConstraintDestroy( constraint -- )
cpConstraintFree( constraint -- )
cpConstraintGetImpulseFunction( quot -- alien )
cpConstraintPreStepFunction( quot -- alien )
cpContactInit( con p n dist hash -- cpContact* )
cpDampedRotarySpringAlloc( -- cpDampedRotarySpring* )
cpDampedRotarySpringGetClass( -- cpConstraintClass* )
cpDampedRotarySpringInit( joint a b restAngle stiffness damping -- cpDampedRotarySpring* )
cpDampedRotarySpringNew( a b restAngle stiffness damping -- cpConstraint* )
cpDampedRotarySpringTorqueFunc( quot -- alien )
cpDampedSpringAlloc( -- cpDampedSpring* )
cpDampedSpringForceFunc( quot -- alien )
cpDampedSpringGetClass( -- cpConstraintClass* )
cpDampedSpringInit( joint a b anchr1 anchr2 restLength stiffness damping -- cpDampedSpring* )
cpDampedSpringNew( a b anchr1 anchr2 restLength stiffness damping -- cpConstraint* )
cpGearJointAlloc( -- cpGearJoint* )
cpGearJointGetClass( -- cpConstraintClass* )
cpGearJointInit( joint a b phase ratio -- cpGearJoint* )
cpGearJointNew( a b phase ratio -- cpConstraint* )
cpGearJointSetRatio( constraint value -- )
cpGrooveJointAlloc( -- cpGrooveJoint* )
cpGrooveJointGetClass( -- cpConstraintClass* )
cpGrooveJointInit( joint a b groove_a groove_b anchr2 -- cpGrooveJoint* )
cpGrooveJointNew( a b groove_a groove_b anchr2 -- cpConstraint* )
cpHashSetAlloc( -- cpHashSet* )
cpHashSetDestroy( set -- )
cpHashSetEach( set func data -- )
cpHashSetEqlFunc( quot -- alien )
cpHashSetFilter( set func data -- )
cpHashSetFilterFunc( quot -- alien )
cpHashSetFind( set hash ptr -- void* )
cpHashSetFree( set -- )
cpHashSetInit( set size eqlFunc trans -- cpHashSet* )
cpHashSetInsert( set hash ptr data -- void* )
cpHashSetIterFunc( quot -- alien )
cpHashSetNew( size eqlFunc trans -- cpHashSet* )
cpHashSetRemove( set hash ptr -- void* )
cpHashSetTransFunc( quot -- alien )
cpInitChipmunk( -- )
cpMomentForCircle( m r1 r2 offset -- cpFloat )
cpMomentForPoly( m numVerts verts offset -- cpFloat )
cpMomentForSegment( m a b -- cpFloat )
cpPinJointAlloc( -- cpPinJoint* )
cpPinJointGetClass( -- cpConstraintClass* )
cpPinJointInit( joint a b anchr1 anchr2 -- cpPinJoint* )
cpPinJointNew( a b anchr1 anchr2 -- cpConstraint* )
cpPivotJointAlloc( -- cpPivotJoint* )
cpPivotJointGetClass( -- cpConstraintClass* )
cpPivotJointInit( joint a b anchr1 anchr2 -- cpPivotJoint* )
cpPivotJointNew( a b pivot -- cpConstraint* )
cpPivotJointNew2( a b anchr1 anchr2 -- cpConstraint* )
cpPolyShapeAlloc( -- cpPolyShape* )
cpPolyShapeContainsVert( poly: cpPolyShape v: cpVect -- ? )
cpPolyShapeContainsVertPartial( poly: cpPolyShape v: cpVect n: cpVect -- ? )
cpPolyShapeGetNumVerts( shape -- int )
cpPolyShapeGetVert( shape idx -- cpVect )
cpPolyShapeInit( poly body numVerts verts offset -- cpPolyShape* )
cpPolyShapeNew( body numVerts verts offset -- cpShape* )
cpPolyShapeValueOnAxis( poly: cpPolyShape n: cpVect d -- min-dist )
cpPolyValidate( verts numVerts -- int )
cpPostStepFunc( quot -- alien )
cpRatchetJointAlloc( -- cpRatchetJoint* )
cpRatchetJointGetClass( -- cpConstraintClass* )
cpRatchetJointInit( joint a b phase ratchet -- cpRatchetJoint* )
cpRatchetJointNew( a b phase ratchet -- cpConstraint* )
cpResetShapeIdCounter( -- )
cpRotaryLimitJointAlloc( -- cpRotaryLimitJoint* )
cpRotaryLimitJointGetClass( -- cpConstraintClass* )
cpRotaryLimitJointInit( joint a b min max -- cpRotaryLimitJoint* )
cpRotaryLimitJointNew( a b min max -- cpConstraint* )
cpSegmentQueryHitDist( start: cpVect end: cpVect info: cpSegmentQueryInfo -- hit-dist )
cpSegmentQueryHitPoint( start: cpVect end: cpVect info: cpSegmentQueryInfo -- hit-point: cpVect )
cpSegmentQueryInfoPrint( info -- )
cpSegmentShapeAlloc( -- cpSegmentShape* )
cpSegmentShapeInit( seg body a b radius -- cpSegmentShape* )
cpSegmentShapeNew( body a b radius -- cpShape* )
cpShapeCacheBB( shape -- cpBB )
cpShapeDestroy( shape -- )
cpShapeFree( shape -- )
cpShapeInit( shape klass body -- cpShape* )
cpShapePointQuery( shape p -- int )
cpShapeSegmentQuery( shape a b info -- int )
cpSimpleMotorAlloc( -- cpSimpleMotor* )
cpSimpleMotorGetClass( -- cpConstraintClass* )
cpSimpleMotorInit( joint a b rate -- cpSimpleMotor* )
cpSimpleMotorNew( a b rate -- cpConstraint* )
cpSlideJointAlloc( -- cpSlideJoint* )
cpSlideJointGetClass( -- cpConstraintClass* )
cpSlideJointInit( joint a b anchr1 anchr2 min max -- cpSlideJoint* )
cpSlideJointNew( a b anchr1 anchr2 min max -- cpConstraint* )
cpSpaceAddBody( space body -- cpBody* )
cpSpaceAddCollisionHandler( space a b begin preSolve postSolve separate data -- )
cpSpaceAddConstraint( space constraint -- cpConstraint* )
cpSpaceAddPostStepCallback( space func obj data -- )
cpSpaceAddShape( space shape -- cpShape* )
cpSpaceAddStaticShape( space shape -- cpShape* )
cpSpaceAlloc( -- cpSpace* )
cpSpaceBBQuery( space bb layers group func data -- )
cpSpaceBBQueryFunc( quot -- alien )
cpSpaceBodyIterator( quot -- alien )
cpSpaceDestroy( space -- )
cpSpaceEachBody( space func data -- )
cpSpaceFree( space -- )
cpSpaceFreeChildren( space -- )
cpSpaceHashAlloc( -- cpSpaceHash* )
cpSpaceHashBBFunc( quot -- alien )
cpSpaceHashDestroy( hash -- )
cpSpaceHashEach( hash func data -- )
cpSpaceHashFree( hash -- )
cpSpaceHashInit( hash celldim cells bbfunc -- cpSpaceHash* )
cpSpaceHashInsert( hash obj id bb -- )
cpSpaceHashIterator( quot -- alien )
cpSpaceHashNew( celldim cells bbfunc -- cpSpaceHash* )
cpSpaceHashPointQuery( hash point func data -- )
cpSpaceHashQuery( hash obj bb func data -- )
cpSpaceHashQueryFunc( quot -- alien )
cpSpaceHashQueryRehash( hash func data -- )
cpSpaceHashRehash( hash -- )
cpSpaceHashRehashObject( hash obj id -- )
cpSpaceHashRemove( hash obj id -- )
cpSpaceHashResize( hash celldim numcells -- )
cpSpaceHashSegmentQuery( hash obj a b t_exit func data -- )
cpSpaceHashSegmentQueryFunc( quot -- alien )
cpSpaceInit( space -- cpSpace* )
cpSpaceNew( -- cpSpace* )
cpSpacePointQuery( space point layers group func data -- )
cpSpacePointQueryFirst( space point layers group -- cpShape* )
cpSpacePointQueryFunc( quot -- alien )
cpSpaceRehashStatic( space -- )
cpSpaceRemoveBody( space body -- )
cpSpaceRemoveCollisionHandler( space a b -- )
cpSpaceRemoveConstraint( space constraint -- )
cpSpaceRemoveShape( space shape -- )
cpSpaceRemoveStaticShape( space shape -- )
cpSpaceResizeActiveHash( space dim count -- )
cpSpaceResizeStaticHash( space dim count -- )
cpSpaceSegmentQuery( space start end layers group func data -- int )
cpSpaceSegmentQueryFirst( space start end layers group out -- cpShape* )
cpSpaceSegmentQueryFunc( quot -- alien )
cpSpaceSetDefaultCollisionHandler( space begin preSolve postSolve separate data -- )
cpSpaceStep( space dt -- )
cpv( x y -- v: cpVect )
cpvadd( v1: cpVect v2: cpVect -- v3: cpVect )
cpvclamp( v1: cpVect len -- v2: cpVect )
cpvcross( v1: cpVect v2: cpVect -- s )
cpvdist( v1: cpVect v2: cpVect -- dist )
cpvdistsq( v1: cpVect v2: cpVect -- distsq )
cpvdot( v1: cpVect v2: cpVect -- s )
cpvforangle( a -- cpVect )
cpvlength( v -- cpFloat )
cpvlengthsq( v: cpVect -- s )
cpvlerp( v1: cpVect v2: cpVect s -- v3: cpVect )
cpvlerpconst( v1: cpVect v2: cpVect d -- v3: cpVect )
cpvmult( v1: cpVect s -- v2: cpVect )
cpvnear( v1: cpVect v2: cpVect dist -- ? )
cpvneg( v1: cpVect -- v2: cpVect )
cpvnormalize( v1: cpVect -- v2: cpVect )
cpvnormalize_safe( v1: cpVect -- v2: cpVect )
cpvperp( v1: cpVect -- v2: cpVect )
cpvproject( v1: cpVect v2: cpVect -- v3: cpVect )
cpvrotate( v1: cpVect v2: cpVect -- v3: cpVect )
cpvrperp( v1: cpVect -- v2: cpVect )
cpvslerp( v1 v2 t -- cpVect )
cpvslerpconst( v1 v2 a -- cpVect )
cpvstr( v -- c-string )
cpvsub( v1: cpVect v2: cpVect -- v3: cpVect )
cpvtoangle( v -- cpFloat )
cpvunrotate( v1: cpVect v2: cpVect -- v3: cpVect )
cpvzero( -- v: cpVect )
destroy_cb( quot -- alien )
pointQuery_cb( quot -- alien )
segmentQuery_cb( quot -- alien )


Class predicate words
WordStack effect
CP_CIRCLE_SHAPE?( object -- ? )
CP_NUM_SHAPES?( object -- ? )
CP_POLY_SHAPE?( object -- ? )
CP_SEGMENT_SHAPE?( object -- ? )
cpArbiter?( object -- ? )
cpArbiterStateFirstColl?( object -- ? )
cpArbiterStateIgnore?( object -- ? )
cpArbiterStateNormal?( object -- ? )
cpArray?( object -- ? )
cpBB?( object -- ? )
cpBody?( object -- ? )
cpCircleShape?( object -- ? )
cpCollisionHandler?( object -- ? )
cpConstraint?( object -- ? )
cpConstraintClass?( object -- ? )
cpContact?( object -- ? )
cpDampedRotarySpring?( object -- ? )
cpDampedSpring?( object -- ? )
cpGearJoint?( object -- ? )
cpGrooveJoint?( object -- ? )
cpHandle?( object -- ? )
cpHashSet?( object -- ? )
cpHashSetBin?( object -- ? )
cpPinJoint?( object -- ? )
cpPivotJoint?( object -- ? )
cpPolyShape?( object -- ? )
cpPolyShapeAxis?( object -- ? )
cpRatchetJoint?( object -- ? )
cpRotaryLimitJoint?( object -- ? )
cpSegmentQueryInfo?( object -- ? )
cpSegmentShape?( object -- ? )
cpShape?( object -- ? )
cpShapeClass?( object -- ? )
cpSimpleMotor?( object -- ? )
cpSlideJoint?( object -- ? )
cpSpace?( object -- ? )
cpSpaceHash?( object -- ? )
cpSpaceHashBin?( object -- ? )
cpVect?( object -- ? )


Files