Fix aircraft jittering

This commit is contained in:
Gustas
2023-05-03 10:39:45 +03:00
committed by Matthias Mailänder
parent 58ab3eb153
commit cfc026a1ac
2 changed files with 17 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Turn speed to apply when aircraft flies in circles while idle. Defaults to TurnSpeed if undefined.")]
public readonly WAngle? IdleTurnSpeed = null;
[Desc("When flying if the difference between current facing and desired facing is less than this value, don't turn. This prevents visual jitter.")]
public readonly WAngle TurnDeadzone = new(2);
[Desc("Maximum flight speed when cruising.")]
public readonly int Speed = 1;