开发者

how to make pixel level collision in Iphone

开发者 https://www.devze.com 2023-03-25 19:47 出处:网络
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

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

精彩评论

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