2 Years Ago
Created GenericLerp mostly based on the existing PositionLerp. Simpler than PositionLerp overall, but can interpolate anything. Implemented it for magnet crane animation - cabin yaw + the two arm movements. This makes the magnet crane visual movement smooth instead of jittery (the existing code did a simple Lerp, but couldn't really be timed right on its own). GenericLerp may be useful any time the server sends regular data which needs to appear smooth on the client despite only coming 10 or 16 times a second. For instance I plan to use it for the train bogie rotation as well.