Thursday, 15 July 2010

game physics - SpriteBuilder | Cocos2d - Swift | XCode | ccPhysicsCollisionBegin -


With

  ccPhysicsCollisionBegin (pair: ...) - & gt; Bull {returns true}.  

The app runs entirely on the iPhone 5S and the iPhone 6 simulator, but when I use the iPhone 5, the iPhone 4S or the iPad 2 simulator, and whenever I load it If I try, the above function ends at the iTouch of my 5th generation.

I get the error message

'NSInternalInconsistencyException' Cause: 'CCPhysicsCollisionBegin delegation method must return a BOOL.'

Can someone advise me why this can happen?

You can also call the function and instead return an ObjCBool. For example: ccPhysicsCollisionBegin (pair: ...) - & gt; ObjCBool ​​{returns true}


No comments:

Post a Comment