Tweening in Zig

Lerp, or linear interpolation , is a convenient way to animate stuff in games without having to store much state: const position = lerp ( start , end , time ) ; This will move position linearly from start to end as time moves from 0 to 1 . Unfortunately, linear motion often appears robotic and unnatural. In fact–even a cartoony robot should overshoot and rattle a bit, right? Thankfully there’s an…