Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: kLy on July 02, 2014, 08:30:43 AM

Title: TweenRotation not Lerping correctly
Post by: kLy on July 02, 2014, 08:30:43 AM
Seems like this behaviour is wrong. If you're going from 5˚ to 355˚ it should be a difference of 10˚, not 350˚ as it is now, causing the objects to swivel around frantically.

TweenRotation.cs should use LerpAngle instead of Lerp for lines 38-40
Title: Re: TweenRotation not Lerping correctly
Post by: ArenMook on July 03, 2014, 03:53:10 AM
The way it is now is intentional, otherwise there would be no way to do a full 360 rotation.

In your example, I'd set 5 and -5 instead.