hello everyone, i’m having some problems with a project but i can not solve. I’m using the TouchScript for some touch events and i got some problem, when i rotate a image, it becomes weird, dont preserves its original scale. I’m attaching 2 images and hope someone help me.
I’m using a quad with texture from web.
Thanks everybody.
Without seeing your code this is all random guesses…
If i had to guess, I would guess that you are rotating around a world axis but your camera is not axis aligned.
Make sure that your camera is 0 in rotation for x, y and z. Also, make sure you are using Rotate about the sprite’s local trsnaform and if there are children, that the rotation of all children is 0 as well.
I was having the same problem. I solved it by using Time.fixedDeltaTime while doing rotation. Or better try Time.smoothDeltaTime. This problem is related to float precision problem. Its a classic coding issue. If i am thinking right.