我目前正在尝试测试两个 CGRect 之间的碰撞。通常在 Objective C 中我会使用 CGRectIntersectsRect 方法,但在 Coso2d Android 中唯一可用的方法似乎是 CGRect.containsRect ,它不能按预期工作。对于 Android 来说还有其他方法吗?
最佳答案
我在CGRect at github repo中找到了相交方法使用该函数检查两个矩形的交集。
我还找到了一个issue logged with the same并且还提到了解决方案。
关于java - CGRectIntersectsRect for cocos2d Android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11230637/