views:

59

answers:

1

I'm trying to animate an object along a path...while it's moving it should continue to "point" towards another object (or CGPoint). What should I be looking for in the framework (Cocoa-Touch) to accomplish this? Maybe something in CAShapeLayer? Though I think that's more for animating the path itself... It's not jumping out at me...

A: 

I believe you're looking for the "bearing" between two points. Here's a good starting point to get you going.

Joshua Nozzi
Meltemi