Profile image

How to stop heading based input from jittering?

2 GagPlanesInc  3.3 years ago

So i have a turret that has the cockpit mounted on it, and I want to make the cockpit stay at one heading. All my codes either lag behind a bit when the vehicle turns because it has smooth() on it, or jitter back and forth because of the tick speed of the game. The cockpit does have to be mounted on the turret so that the vertical stabilization can work. Unless there is a code that can stabilize a turret on both axis simultaneously. Any help would be appreciated.