Quick #GodotEngine tip: Use lerp_angle if you want to lerp angles.

It will correctly wrap angles and not just lerp to the exact value!

#indiedev #gamedev

Follow

@SanderVanhove Neither of them look like a lerp though :)

@dos and yet, they are lerps 😉 Though, like somebody on reddit pointed out, they would have looked better with a better easing function

@SanderVanhove Lerp is lerp, adding a non-linear easing makes it not a lerp by definition ;) Somehow the name stuck and gets used for any kind of interpolation, I'm just being (playfully) pedantic there 😄

@dos @SanderVanhove let's not be a tween about it. It's actually a nice hint since I totally just ran into that issue with weird tween behavior on angles.

@dos ah yes indeed! I'm using lerp functions to get a non-lerp result 😂

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml