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
-
– ptmRatioReturns the ptm ratio
Other Methods
Instance Methods
addFixturesToBody:forShapeName:
Adds fixture data to a body
- (void)addFixturesToBody:(b2Body *)body forShapeName:(NSString *)shapeParameters
- body
body to add the fixture to
- shape
name of the shape
Declared In
GB2ShapeCache.haddShapesWithFile:
Adds shapes to the shape cache
- (void)addShapesWithFile:(NSString *)plistParameters
- plist
name of the plist file to load
Declared In
GB2ShapeCache.h