Local Rotate not really local?
« on: April 20, 2015, 05:16:05 AM »
I added DOTween visual editor (Pro), to a child object like so:

ParentObj
    ChildObj(DOTween)

The parent object has random rotation. What I want to achieve is to rotate the child's y-axis, only. I wrote my own C# without using DOTween and was able to accomplish this. I'd like to be able to do that using DOTween's visual editor.

The settings I have on child DOTween:
  • Local Rotate
  • Duration: 20
  • Ease: Linear
  • Loops: -1
  • Loop Type: Incremental
  • ID:
  • TO:  0, 360, 0
  • Rotation Mode: Local Axis Add
  • Relative: Yes

*

Daniele

  • Dr. Admin, I presume
  • *****
  • 378
    • View Profile
    • Demigiant
Re: Local Rotate not really local?
« Reply #1 on: April 20, 2015, 01:44:27 PM »
Hi,


I just tested this again to be sure, but everything works correctly here, and with your settings the child rotates around its own Y axis as it should. Could you replicate this in a barebone project, upload it somewhere, and send me a download link via Personal Message (by clicking on the balloon icon under my avatar)? That way I can see what's happening.


P.S. also, be sure you're using the latest version of DOTween Pro.