views:

817

answers:

2

i am developing game application for iphone.In my application there is one object(fly).In my application this object move straight forwared using animation but i want to move object realistic.so path should be curve.please advice me about my question.

Edit:how can I create path with arc like flying an object from one place to another using curves...?

A: 

Have a look at CAKeyframeAnimation, thats the way to do such things.

Till
A: 

For example code that performs an animation along a curved path, you can consult my answer to this question. As Till suggests, you'll want to use a CAKeyframeAnimation with a Core Graphics curved path set to the animation's path property.

Brad Larson