Author Topic: TweenRotation not Lerping correctly  (Read 2430 times)

kLy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
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.