In my game i meet different crashes because:
in debug info i can see:
- Code: Select all
cpAssertHard(!space->locked, "You cannot manually reindex objects while the space is locked. Wait until the current query or step is complete.");
* cocos2d makes impossible to control the locks.
1. How correctly to wait when the SPACE will be unlocked?
2. when we have collision we continue to control the body or sprite with body