DOTween Pro Path camera support
« on: September 23, 2015, 05:28:46 PM »
Hi,

I just bought DOTween Pro and I am trying to animate camera over a path with it (flyby cam looking at map center). It is almost fine but unfortunately I have a problem: when camera follows a path, it gets rotated in all axis. I want my camera to have Orientation set to "Look At Position" but I would like to be able to lock rotation around local Z so that camera is always properly looking at target.

Also, smaller request: would it be possible to add "Look At Path" for Orientation setting? By that I mean that camera would follow 1 path but would look at corresponding point at another path. That would be perfect solution for cut-scenes etc.

Re: DOTween Pro Path camera support
« Reply #1 on: September 23, 2015, 05:38:48 PM »
Never mind 2nd request. I just realized I could just animate a game object on a 2nd path and tell original object to look at this target :)

Still in need of axis locking option but for now I added a separate component that resets local Z rotation to 0 in LateUpdate()

Re: DOTween Pro Path camera support
« Reply #2 on: September 23, 2015, 11:50:31 PM »
I think you can look into the answers of this post too:
http://forum.demigiant.com/index.php?topic=123.0