cocos2d x - box2d crush on SetActive -
i'm writing game on cocos2d-x box2d physics, i'm disabling fixtures when go off screen.
but got error:
assertion failed: (m_world->islocked() == false), function setactive while i'm doing this:
_physicsbody->setactive(false); anyone knows what's happening?
while world beingness updated, limited in can change. ever you're calling setactive(), it's happening during world step, isn't allowed.
what should tag bodies wish alter active state, , after world step. example, set bodies in list, phone call setactive() on each 1 in list after step().
cocos2d-x box2d
No comments:
Post a Comment