24 #define CHIPMUNK_SPACE_USE_HASTY_SPACE 1
37 NSMutableSet *_children;
38 NSMutableArray *_handlers;
47 @property(nonatomic, assign)
int iterations;
50 @property(nonatomic, assign)
cpVect gravity;
57 @property(nonatomic, assign)
cpFloat damping;
60 @property(nonatomic, assign)
cpFloat idleSpeedThreshold;
66 @property(nonatomic, assign)
cpFloat sleepTimeThreshold;
74 @property(nonatomic, assign)
cpFloat collisionSlop;
81 @property(nonatomic, assign)
cpFloat collisionBias;
87 @property(nonatomic, assign)
cpTimestamp collisionPersistence;
90 @property(nonatomic, readonly)
cpSpace *space;
101 @property(nonatomic, readonly)
cpFloat currentTimeStep;
106 @property(nonatomic, readonly) BOOL locked;
112 @property(nonatomic, assign)
id userData;
130 - (void)setDefaultCollisionHandler:(
id)delegate
132 preSolve:(
SEL)preSolve
133 postSolve:(
SEL)postSolve
134 separate:(
SEL)separate;
151 - (void)addCollisionHandler:(
id)delegate
154 preSolve:(
SEL)preSolve
155 postSolve:(
SEL)postSolve
156 separate:(
SEL)separate;
186 - (NSArray *)addBounds:(
cpBB)bounds thickness:(
cpFloat)radius
188 filter:(
cpShapeFilter)filter collisionType:(
id)collisionType;
211 - (BOOL)addPostStepCallback:(
id)target selector:(
SEL)selector key:(
id)key;
214 typedef void (^ChipmunkPostStepBlock)(void);
217 - (BOOL)addPostStepBlock:(ChipmunkPostStepBlock)block key:(
id)key;
255 - (NSArray *)constraints;
258 - (void)reindexStatic;
282 @property(nonatomic, assign) NSUInteger
threads;
300 #define CHIPMUNK_ARBITER_GET_SHAPES(__arb__, __a__, __b__) ChipmunkShape *__a__, *__b__; { \
301 cpShape *__shapeA__, *__shapeB__; \
302 cpArbiterGetShapes(__arb__, &__shapeA__, &__shapeB__); \
303 __a__ = cpShapeGetUserData(__shapeA__); __b__ = cpShapeGetUserData(__shapeB__); \
306 #define CHIPMUNK_ARBITER_GET_BODIES(__arb__, __a__, __b__) ChipmunkBody *__a__, *__b__; { \
307 cpBody *__bodyA__, *__bodyB__; \
308 cpArbiterGetBodies(__arb__, &__bodyA__, &__bodyB__); \
309 __a__ = cpBodyGetUserData(__bodyA__); __b__ = cpBodyGetUserData(__bodyB__); \