GB2ShapeCache Class Reference
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
-
+ sharedShapeCache
-
– addShapesWithFile:
Adds shapes to the shape cache
-
– addFixturesToBody:forShapeName:
Adds fixture data to a body
-
– anchorPointForShape:
Returns the anchor point of the given sprite
-
– ptmRatio
Returns the ptm ratio
Other Methods
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