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 isLocked;
107 @property(nonatomic, readonly) BOOL locked __deprecated;
113 @property(nonatomic, assign)
id userData;
131 - (void)setDefaultCollisionHandler:(
id)delegate
133 preSolve:(
SEL)preSolve
134 postSolve:(
SEL)postSolve
135 separate:(
SEL)separate;
152 - (void)addCollisionHandler:(
id)delegate
155 preSolve:(
SEL)preSolve
156 postSolve:(
SEL)postSolve
157 separate:(
SEL)separate;
187 - (NSArray *)addBounds:(
cpBB)bounds thickness:(
cpFloat)radius
189 filter:(
cpShapeFilter)filter collisionType:(
id)collisionType;
212 - (BOOL)addPostStepCallback:(
id)target selector:(
SEL)selector key:(
id)key;
215 typedef void (^ChipmunkPostStepBlock)(void);
218 - (BOOL)addPostStepBlock:(ChipmunkPostStepBlock)block key:(
id)key;
256 - (NSArray *)constraints;
259 - (void)reindexStatic;
283 @property(nonatomic, assign) NSUInteger
threads;
301 #define CHIPMUNK_ARBITER_GET_SHAPES(__arb__, __a__, __b__) ChipmunkShape *__a__, *__b__; { \
302 cpShape *__shapeA__, *__shapeB__; \
303 cpArbiterGetShapes(__arb__, &__shapeA__, &__shapeB__); \
304 __a__ = cpShapeGetUserData(__shapeA__); __b__ = cpShapeGetUserData(__shapeB__); \
307 #define CHIPMUNK_ARBITER_GET_BODIES(__arb__, __a__, __b__) ChipmunkBody *__a__, *__b__; { \
308 cpBody *__bodyA__, *__bodyB__; \
309 cpArbiterGetBodies(__arb__, &__bodyA__, &__bodyB__); \
310 __a__ = cpBodyGetUserData(__bodyA__); __b__ = cpBodyGetUserData(__bodyB__); \