rotation on nodes (dotween pro)
« on: February 03, 2016, 06:33:00 PM »
Is it possible to have the object rotate when between nodes? Like a plane banking in a turn?

Thanks

Re: rotation on nodes (dotween pro)
« Reply #1 on: February 03, 2016, 10:05:34 PM »
While I assume the answer to your question is "yes", it's a little vague to be sure. If you could provide some more details regarding exactly what it is you're trying to do you'll likely get a more helpful response.

For instance, is the object in question already being tweened between 2 positions and you simply want to rotate it as a function of where it is in the motion tween?  If that's the case, I'd think you could accomplish that with a Sequence, consisting of something line this:

Code: [Select]
DOTween.Sequence()
        .Join(yourTrans.DoMove(...))
        .Join(yourTrans.DoRotate(...))

However, based on unknown details, that may be way off base for your needs.

Jeff