playMaker

Author Topic: Rotation Movement Dotween  (Read 1754 times)

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Rotation Movement Dotween
« on: December 27, 2019, 11:27:19 PM »
Hello,

Im having an issue and was hoping someone could see something I don't (please see image)? I have a simple cube in the scene which I am moving 1 unit and rotating 90 so that it flips each time a key on the keyboard is pressed.

The rotation to the left and right work perfectly fine but there are some strange issues when rotating up/fwd and down/back here are the inspector values each time the button is pressed repeatedly (one key a few times in a row):

Perfect rotation I can see the gizmo rotating 360 degrees
Left arrow key - z: 0, 90, 180, -90, 0, etc..
Right arrow key - z: 0, -90, 180, 90, 0,  etc..

With the up and down arrow keys there is an issue I can't figure out as the cube never completes a 360 and flip/flops back and forth:
Fwd/up arrow key - x: 0, 90, -180, 90, -180, 90, etc..
Back/down arrow key - x: 0, -90, -180, -90, -180, etc..

I'm open to any suggestions on to figure this out. Thank you in advance.
Have I said how much I love playmaker!!! This is one amazing tool

LuminRabbit

  • Full Member
  • ***
  • Posts: 161
  • Lumin Rabbit
Re: Rotation Movement Dotween
« Reply #1 on: December 27, 2019, 11:56:36 PM »
Its solved :D
I needed to set Rotate mode to World Axis Add (new to Dotween lol).
Have I said how much I love playmaker!!! This is one amazing tool