I have 2 sprite object classes with chipmunk shapes inside...
I was wondering if it's ok to update the shapes from within the class.... so it would look like this:
//GameLayer.m
- (void)step:(ccTime)dt {
cpSpaceStep(space, delta);
[myObject update];
}
//myObject.m
- (void)update {
self.position = body->p;
.....
}
Just wondering about best practices with chipmunk inside class.... as I'm having fps leaps, once in like 20-30 secs (random) my fps just dives under 30 and then goes back again to 45-60.
Any ideas?