Physics Editor .plist file not being loaded by cache? Box2d application
Okay I am making a Box2d app and have been getting a multitude of errors
in the same class/method and I have FINALLY figured out that it is
because, for some reason, my plist file isn't being loaded/registered to
the console and I am not sure why.
In my init method of my main class I have:
if((self = [super init]))
{
CGSize winSize = [CCDirector sharedDirector].winSize;
self.isTouchEnabled = YES;
[self setupWorld];
[self setupDebugDraw];
[self setupShapeCache];
}
My setupShapeCache method is:
- (void)setupShapeCache
{
[[ShapeCache sharedShapeCache] addShapesWithFile:@"shapes.plist"];
}
This method loads my Physics Editor shapes into the cache. However, it
isn't implemented.... I know that because when I run my application I get
errors in the ShapeCache class.
These errors are inside my ShapeCache class and occur because I do not
think that "shapes.plist" is ever loaded.
Does anyone have any ideas as to why my shapes.plist wasn't loaded?
Here is the screenshot of my error inside Shapecache. Once I comment out
this method I get another error in ShapeCache too (plist file never
loaded)
Please try and help! :) I hope this is enough bg info.... if there's
anything missing/ would be helpful PLEASE let me know.
No comments:
Post a Comment