Inherits from CCSprite : CCNodeRGBA : CCNode : NSObject
Declared in BodyNode.h
BodyNode.mm

Tasks

Other Methods

Other Methods

  • – cleanup

    Event that is called when the running node is no longer running (eg: its CCScene is being removed from the “stage” ). On cleanup you should break any possible circular references. CCNode’s cleanup removes any possible scheduled timer and/or any possible action. If you override cleanup, you shall call [super cleanup]

Properties

body

Instance Methods

cleanup

Event that is called when the running node is no longer running (eg: its CCScene is being removed from the “stage” ). On cleanup you should break any possible circular references. CCNode’s cleanup removes any possible scheduled timer and/or any possible action. If you override cleanup, you shall call [super cleanup]

- (void)cleanup

Availability

Declared In

CCNode.h

initWithShape:inWord:

Creates a new shape

- (id)initWithShape:(NSString *)shapeName inWord:(b2World *)world

Parameters

shapeName:

Name of the shape and sprite

inWorld:

Pointer to the world object to add the sprite to

Return Value

BodyNode object

Declared In

BodyNode.h

setBodyShape:

Changes the body’s shape Removes the fixtures of the body replacing them with the new ones

- (void)setBodyShape:(NSString *)shapeName

Parameters

shapeName

name of the shape to set

Declared In

BodyNode.h