开发者

how to make pixel level collision in Iphone

How to make pixel level collision in Iphone.

In j2me i able to make pixel level collision

Sprite s;
s.collidesWit开发者_如何学Ch(s1,true); //For pixel level collision

In Iphone i used:

CGRectInterSect(img1,img2);

How i make in Iphone. Any samples for pixel level collision


You can use a physics engine like Chipmunk or Box2D. It will be a lot easier for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜