24 #define CHIPMUNK_SPACE_USE_HASTY_SPACE 1 37 NSMutableSet *_children;
38 NSMutableArray *_handlers;
106 @property(nonatomic, readonly) BOOL
locked;
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;
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__); \ cpFloat collisionSlop
Amount of encouraged penetration between colliding shapes.
Definition: ChipmunkSpace.h:74
Definition: chipmunk_private.h:641
Fast collision filtering type that is used to determine if two objects collide before calling collisi...
Definition: cpShape.h:52
cpFloat idleSpeedThreshold
If a body is moving slower than this speed, it is considered idle. The default value is 0...
Definition: ChipmunkSpace.h:60
Allows you to add composite objects to a space in a single method call.
Definition: ObjectiveChipmunk.h:46
BOOL locked
Returns true if the space is currently executing a timestep.
Definition: ChipmunkSpace.h:106
Rigid bodies are the basic unit of simulation in Chipmunk.
Definition: ChipmunkBody.h:29
uintptr_t cpCollisionType
Type used for cpSpace.collision_type.
Definition: chipmunk_types.h:223
unsigned int cpTimestamp
Type used for various timestamps in Chipmunk.
Definition: chipmunk_types.h:244
double cpFloat
Chipmunk's floating point type.
Definition: chipmunk_types.h:83
Chipmunk spaces are simulation containers.
Definition: ChipmunkSpace.h:32
void reindexStatic()
Update all the static shapes.
Definition: chipmunk_types.h:271
cpFloat collisionBias
Determines how fast overlapping shapes are pushed apart.
Definition: ChipmunkSpace.h:81
Abstract base class for collsion shape types.
Definition: ChipmunkShape.h:27
int iterations
The iteration count is how many solver passes the space should use when solving collisions and joints...
Definition: ChipmunkSpace.h:47
ChipmunkHastySpace is an Objective-Chipmunk wrapper for cpHastySpace.
Definition: ChipmunkSpace.h:276
Definition: ChipmunkShape.h:96
cpSpace * space
Returns a pointer to the underlying cpSpace C struct.
Definition: ChipmunkSpace.h:90
Holds collision information from segment queries. You should never need to create one...
Definition: ChipmunkShape.h:124
cpTimestamp collisionPersistence
Number of frames that contact information should persist.
Definition: ChipmunkSpace.h:87
Chipmunk's axis-aligned 2D bounding box type. (left, bottom, right, top)
Definition: cpBB.h:33
cpFloat currentTimeStep
Retrieves the current (if you are in a callback from [ChipmunkSpace step:]) or most recent (outside o...
Definition: ChipmunkSpace.h:101
NSArray * shapes()
Get a copy of the list of all the shapes in the space.
cpFloat sleepTimeThreshold
Elapsed time before a group of idle bodies is put to sleep (defaults to infinity which disables sleep...
Definition: ChipmunkSpace.h:66
void(^ ChipmunkPostStepBlock)(void)
Block type used with [ChipmunkSpace addPostStepBlock:].
Definition: ChipmunkSpace.h:214
ChipmunkBody * staticBody
The space's designated static body.
Definition: ChipmunkSpace.h:96
NSArray * constraints()
Get a copy of the list of all the constraints in the space.
NSArray * bodies()
Get a copy of the list of all the bodies in the space.
cpFloat damping
Global viscous damping value to use for all rigid bodies in this space (default value is 1...
Definition: ChipmunkSpace.h:57
id userData
An object that this space is associated with.
Definition: ChipmunkSpace.h:112
cpVect gravity
Global gravity value to use for all rigid bodies in this space (default value is cpvzero).
Definition: ChipmunkSpace.h:50