How to get rid of scaling when animating?(SOLVED)

I have code:

go.animate(".", "rotation", go.PLAYBACK_LOOP_FORWARD, vmath.quat_rotation_z(math.rad(90)),  go.EASING_LINEAR, self.speed)

and how it work
%D0%90%D0%BD%D0%B8%D0%BC%D0%B0%D1%86%D0%B8%D1%8F

How do i get rid of scaling?

I would say instead of rotating based on a quaternion, use Euler Angles

go.animate(".", "euler.z", go.PLAYBACK_LOOP_FORWARD, 360,  go.EASING_LINEAR, self.speed) 
2 Likes

thanks

go.animate linearly interpolates between two values.

You cannot linearly interpolate two quaternions and still have a valid rotation.

3 Likes