Inherits from NSObject
Declared in GB2ShapeCache.h
GB2ShapeCache.mm

Overview

Shape cache This class holds the shapes and makes them accessible The format can be used on any MacOS/iOS system

Tasks

Other Methods

Other Methods

Class Methods

sharedShapeCache

Instance Methods

addFixturesToBody:forShapeName:

Adds fixture data to a body

- (void)addFixturesToBody:(b2Body *)body forShapeName:(NSString *)shape

Parameters

body

body to add the fixture to

shape

name of the shape

Declared In

GB2ShapeCache.h

addShapesWithFile:

Adds shapes to the shape cache

- (void)addShapesWithFile:(NSString *)plist

Parameters

plist

name of the plist file to load

Declared In

GB2ShapeCache.h

anchorPointForShape:

Returns the anchor point of the given sprite

- (CGPoint)anchorPointForShape:(NSString *)shape

Parameters

shape

name of the shape to get the anchorpoint for

Return Value

anchorpoint

Declared In

GB2ShapeCache.h

dealloc

init

ptmRatio

Returns the ptm ratio

- (float)ptmRatio

Declared In

GB2ShapeCache.h