我在cocos2d-x box2d中遇到了一个非常奇怪的联系人监听器问题。正好在我的游戏之间,当两个身体仍在联系时,联系人听到的呼叫停止工作(或根据我的知识)。请告诉我,如果我错了,联络听众的电话是如何工作的。首先调用开始联系,然后重复调用preSolve和postolve方法直到End Contact ....如果这是正确的方式那么我必须说发生的事情是调用开始联系,然后联系监听器死掉直到其他两个机构碰撞
提前致谢。对不起语法错误。此外,如果您无法理解我的问题,请告诉我,我会尝试解释它。
这是输出
Cocos2d: Begin Contact
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
Cocos2d: PRE SOLVE
Cocos2d: Post SOLVE
之后,这个电话突然停止......任何想法????