Hi, guys!
I have been trying to achieve a rotation with momentum (inertia).
It's about a submarine (top down perspective). Rotating must be smooth (I achieve this) but it's not slowing down until stops when key/stick is not being pressed anymore.
Using anglediff or anglelerp on this code didn't do the trick:
anglelerp(self.Angle,angle(0,0,gamepad.axis(0,2),gamepad.axis(0,3)),1*dt)
OR
anglediff(self.Angle,angle(0,0,gamepad.axis(0,2),gamepad.axis(0,3)))*(dt)
Could you help with this? (It could be keyboard instead of gamepad, of course).