Animating a Cannonball


#1

For my first little app, I want to make a simple cannon shooter game.

I can figure out the math for how to calculate the trajectory of the cannon ball when it is shot (thank God I married a physicist).

However, I’m thinking about the easiest way to animate the cannon ball. It seems to me that having it follow a bezier path is probably the easiest way to do it. I just calculate a few points along the trajectory path, create a bezier path to fit those points, and animate the cannon ball image along that path.

Alternatively, I could draw/redraw the cannon ball at each point (at some interval) along the path, but this seems like unnecessary work in iOS-land.

Thoughts? What do you all consider the simplest way to do this? Again, nothing fancy, remember this is My First App ™. :slight_smile: