Keep object oriented towards a point while it's animated along a path

Posted by Meltemi on Stack Overflow See other posts from Stack Overflow or by Meltemi
Published on 2010-04-16T01:37:23Z Indexed on 2010/04/16 1:43 UTC
Read the original article Hit count: 363

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...

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about animation