开发者

How to move the arrow by dragging and then after that to toss/throw it?

开发者 https://www.devze.com 2023-02-07 16:20 出处:网络
In my application I have one arrow image with fix center and I can rotat开发者_StackOverflow社区e it by the touch move method on the same center.

In my application I have one arrow image with fix center and I can rotat开发者_StackOverflow社区e it by the touch move method on the same center.

But I also need to toss/throw the arrow after doing some rotation with touch move. How can I toss the arrow?


http://www.edumobile.org/iphone/iphone-programming-tutorials/how-to-use-gestures-in-iphone-application/

You can refer to this for some basic events like swiping or touching.

For Physics engine, I suppose you can refer to this : http://code.google.com/p/chipmunk-physics/

0

精彩评论

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