I want to rotate the object using iTween, but it doesn't work well.
Hara
started a topic
over 3 years ago
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
C
Chujo @STYLY
said
over 3 years ago
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
Chujo @STYLY
said
over 3 years ago
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)
Hara
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.
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)
Chujo @STYLY
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)
-
Error message is displayed when uploading Prefabs to STYLY, and model can not be uploaded.
-
Light doesn't show up correctly in STYLY Studio.
-
I want to check if an object is in view on STYLY.
-
About how to generate an event on STYLY Mobile (AR).
-
I want to move from a STYLY scene to another website.
-
I want to determine if a player has entered a certain area in the browser.
-
I would like to upload Timeline as a prefab, but an error is displayed and can not be uploaded.
-
A model created with Blender does not display correctly in STYLY.
-
Collisions are not detected correctly with PlayMaker.
-
About Equipment of InteractionSDK.
See all 170 topics