Convert actor speed to world coordinates.

This commit is contained in:
Paul Chote
2013-12-25 19:23:16 +13:00
parent c7914ec68f
commit 0b8dafcdf0
3 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ namespace OpenRA.Mods.RA.Air
var approachStart = landPos + new WVec(-landDistance, 0, altitude);
// Add 10% to the turning radius to ensure we have enough room
var speed = plane.MovementSpeed * 1024 / (Game.CellSize * 5);
var speed = plane.MovementSpeed * 32 / 35;
var turnRadius = (int)(141 * speed / planeInfo.ROT / (float)Math.PI);
// Find the center of the turning circles for clockwise and counterclockwise turns