Welcome,
Guest
. Please
login
or
register
.
November 06, 2025, 10:44:18 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
TweenRotation not Lerping correctly
« previous
next »
Print
Pages: [
1
]
Author
Topic: TweenRotation not Lerping correctly (Read 2430 times)
kLy
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 5
TweenRotation not Lerping correctly
«
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
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: TweenRotation not Lerping correctly
«
Reply #1 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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
TweenRotation not Lerping correctly