Inherits from SpaceManager : NSObject
Declared in SpaceManagerCocos2d.h

Overview

A specialized sub-class of SpaceManager that adds specific Cocos2d functionality

Tasks

Class Methods

createConstraintNode:

Create [debug] node with random color

+ (cpConstraintNode *)createConstraintNode:(cpConstraint *)constraint

Declared In

SpaceManagerCocos2d.h

createShapeNode:

Create [debug] node with random color

+ (cpShapeNode *)createShapeNode:(cpShape *)shape

Declared In

SpaceManagerCocos2d.h

Instance Methods

addWindowContainmentWithFriction:elasticity:inset:

Convenience method for adding a containment rect around the view

- (NSArray *)addWindowContainmentWithFriction:(cpFloat)friction elasticity:(cpFloat)elasticity inset:(cpVect)inset

Declared In

SpaceManagerCocos2d.h

addWindowContainmentWithFriction:elasticity:inset:radius:

createDebugLayer

Attach cpShapeNode’s and cpConstraintNode’s to shapes/constraints that have NULL data fields

- (CCLayer *)createDebugLayer

Declared In

SpaceManagerCocos2d.h

createDebugLayerWithColor:

Attach cpShapeNode’s and cpConstraintNode’s to shapes/constraints that have NULL data fields

- (CCLayer *)createDebugLayerWithColor:(ccColor4B)color

Declared In

SpaceManagerCocos2d.h

start

Schedule a timed loop (against step:) using Cocos2d’s default dt

- (void)start

Declared In

SpaceManagerCocos2d.h

start:

Schedule a timed loop (against step:) using dt

- (void)start:(ccTime)dt

Declared In

SpaceManagerCocos2d.h

stop

Stop the timed loop

- (void)stop

Declared In

SpaceManagerCocos2d.h