0

I'm currently trying to test for collisions between two CGRects. Usually in Objective C I'd use the CGRectIntersectsRect method, but in Coso2d Android the only method available seems to be CGRect.containsRect which doesn't work as desired. Is there another way this must be done for Android?

4

2 に答える 2

1

githubリポジトリのCGRectでintersectsメソッドを見つけました。この関数を使用して、2つのrectの交差をチェックします。

私はまた、同じものでログに記録された1つの問題を見つけました、そして解決策の言及もあります。

于 2012-06-27T16:37:52.740 に答える
0

CGRect.intersectsメソッドを含む.jarファイルの更新バージョンをダウンロードしました

于 2012-06-27T16:35:54.097 に答える