Tween rotation around point or object?
« on: April 20, 2015, 12:50:58 AM »
Does DOTween have the ability to tween an objects position and rotation around a point or object.

Unity already has Transform.RotateAround which allows you to rotate around an object, but I wasn't able to find a way to smoothly rotate around an object, so I was hoping HOTween could fill that gap.

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Tween rotation around point or object?
« Reply #1 on: April 20, 2015, 12:59:52 AM »
Hi,


Sorry but no. I have that in my todo list since quite a while, but still didn't implement it. I just prioritized it and will do it asap.

Re: Tween rotation around point or object?
« Reply #2 on: April 20, 2015, 01:22:08 AM »
Thanks, I really appreciate it.

Re: Tween rotation around point or object?
« Reply #3 on: May 01, 2015, 07:25:38 AM »
I've started using DOTween and am looking to utilize RotateAround as well.
Would there be a temporary way to implement this desired effect until it's part of DOTween natively?

Thanks for your help! :)

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Tween rotation around point or object?
« Reply #4 on: May 01, 2015, 12:39:58 PM »
This got derailed a little, because it's pretty complicated, and after working on it a while I had to prioritize some other issues that came out. Still, I hope to have it done as soon as possible.

In the meantime, a trick would be to use a parent/child logic. You place the parent at the position where you want to rotate around, place the child wherever you want, then rotate the parent. That way, it will behave exactly as a RotateAround.

Cheers :)