Start a new topic
Answered

I want to rotate the object using iTween, but it doesn't work well.

I tried to rotate the object 360 degrees around the z-axis using itween (RotateTo), but it only rotates 90 degrees. I would like to know if there is a better way.


Best Answer

The iTween will try to go to that location in the shortest distance. If the original is 0 degrees and you try to make it 360 degrees, it will not move. Therefore, you need to give it clear instructions for movement. For example, you can use the iTween Rotate Add to tell it to turn 180 degrees and then turn another 180 degrees. (However, if you have a lot of details, it may be faster to use Unity's animation)

1 Comment

Answer

The iTween will try to go to that location in the shortest distance. If the original is 0 degrees and you try to make it 360 degrees, it will not move. Therefore, you need to give it clear instructions for movement. For example, you can use the iTween Rotate Add to tell it to turn 180 degrees and then turn another 180 degrees. (However, if you have a lot of details, it may be faster to use Unity's animation)

Login or Signup to post a comment