Realistic Head Sway Implementation
Adds an adjustable head sway/bobbing effect to players in cabs. The effect is affected by train speed, track curvature, driving over crossings and junctions, and other changes to vehicle velocity such as collisions and derailments. The effect only activates when VSync is enabled to ensure there are no stutters or glitches in the animation.