Conforms to NSObject
Declared in cpCCNodeImpl.h

Overview

Our protocol that our CocosNode objects follow, these include:

-cpSprite
-cpShapeNode
-cpAtlasSprite

Tasks

Properties

autoFreeShapeAndBody

Set this to true if you want the shape and/or body to be free’d when we’re released

@property (nonatomic, readwrite, assign) BOOL autoFreeShapeAndBody

Declared In

cpCCNodeImpl.h

body

The body, if any, that we’re connected to. You may have a body with no shape set

@property (nonatomic, readwrite, assign) cpBody *body

Declared In

cpCCNodeImpl.h

ignoreRotation

Set this if you don’t want this object to sync with the body’s rotation

@property (nonatomic, readwrite, assign) BOOL ignoreRotation

Declared In

cpCCNodeImpl.h

integrationDt

If this is anything other than zero, a position change will update the shapes velocity using integrationDt to calculate it

@property (nonatomic, readwrite, assign) cpFloat integrationDt

Declared In

cpCCNodeImpl.h

shape

The shape, if any, that we’re connected to. Setting this will also set the body

@property (nonatomic, readwrite, assign) cpShape *shape

Declared In

cpCCNodeImpl.h

shapes

The shapes, each wrapped in an NSValue, that our body is connected to

@property (nonatomic, readonly) NSArray *shapes

Declared In

cpCCNodeImpl.h

spaceManager

If autoFreeShapeAndBody is set, then this must be set too

@property (nonatomic, readwrite, assign) SpaceManager *spaceManager

Declared In

cpCCNodeImpl.h

Instance Methods

applyForce:

applyForce:offset:

applyImpulse:

applyImpulse:offset:

resetForces