Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -224,6 +224,12 @@ namespace Flax.Build
/// </summary>
public static partial class EngineConfiguration
{
/// <summary>
/// 1 to enable large worlds with 64-bit coordinates precision support in build (USE_LARGE_WORLDS=1).
/// </summary>
[CommandLine("useLargeWorlds", "1 to enable large worlds with 64-bit coordinates precision support in build (USE_LARGE_WORLDS=1)")]
public static bool UseLargeWorlds = false;
/// <summary>
/// True if managed C# scripting should be enabled, otherwise false. Engine without C# is partially supported and can be used when porting to a new platform before implementing C# runtime on it.
/// </summary>
@@ -236,5 +242,11 @@ namespace Flax.Build
return false; // TODO: mono for ps5
return UseCSharp || options.Target.IsEditor;
}
public static bool WithLargeWorlds(NativeCpp.BuildOptions options)
{
// This can be used to selectively control 64-bit coordinates per-platform or build configuration
return UseLargeWorlds;
}
}
}