Getting the world's contactListener in Box2D

前端 未结 2 1786
梦毁少年i
梦毁少年i 2021-01-28 21:09

I\'m writing a game for Mac OS using cocos2D and Box2D. I\'ve added a b2ContactListener subclass to my world as follows:

contactListener = new Cont         


        
2条回答
  •  滥情空心
    2021-01-28 21:56

    I think you simply can call GetContactList and then process all the contacts using iterator if you need to do it in some other place

提交回复
热议问题