@Pavelas wrote:
Hi all,
I am trying to make a smooth rotation of touchscreen recognized object - it has some rotation jitter, so I am using the same function as for the movement smoothing :
rotationease += (rotation - rotationease) * 0.05;but I have an issue - then I am rotating the object putted on touchscreen(special foil, witch is capable to track position of special objects placed on screen and rotation of those objects), I am getting values from 0 to 359 - angle of object center rotation, so then I am rotating that object and I am passing the 359 to 0, or 0 to 359 degrees my function starts to move the object in opposite way, is there are any correct way of doing this?
Thanks in advanced!
Posts: 1
Participants: 1