37#define UE_OLD_WORLD_MAX 2097152.0 /* UE4 maximum world size */
38#define UE_OLD_HALF_WORLD_MAX (UE_OLD_WORLD_MAX * 0.5) /* UE4 half maximum world size */
39#define UE_OLD_HALF_WORLD_MAX1 (UE_OLD_HALF_WORLD_MAX - 1) /* UE4 half maximum world size minus one */
40
41#define UE_LARGE_WORLD_MAX 8796093022208.0 /* LWC maximum world size, Approx 87,960,930.2 km across, or 43,980,465.1 km from the origin */
42#define UE_LARGE_HALF_WORLD_MAX (UE_LARGE_WORLD_MAX * 0.5) /* LWC half maximum world size */
43#define UE_LARGE_HALF_WORLD_MAX1 (UE_LARGE_HALF_WORLD_MAX - 1) /* LWC half maximum world size minus one */
44
45#ifndef UE_USE_UE4_WORLD_MAX
46#define UE_USE_UE4_WORLD_MAX 0 // Force UE4 WORLD_MAX for converted UE4 titles that explicitly rely on it.
47#endif
48
49// Note: Modifying WORLD_MAX affects UE_LWC_RENDER_TILE_SIZE in Engine\Source\Runtime\Core\Private\Misc\LargeWorldRenderPosition.cpp and may introduce precision issues in shaders using world coordinates.
56#define HALF_WORLD_MAX (WORLD_MAX * 0.5) /* Half the maximum size of the world */
57#define HALF_WORLD_MAX1 (HALF_WORLD_MAX - 1.0) /* Half the maximum size of the world minus one */
58
59#define UE_FLOAT_HUGE_DISTANCE 1048576.0 /* Maximum distance representable by a float whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by float types that exceed this value */
60#define UE_DOUBLE_HUGE_DISTANCE 562949953421312.0 /* Maximum distance representable by a double whilst maintaining precision of at least 0.0625 units (1/16th of a cm) - Precision issues may occur for positions/distances represented by double types that exceed this value */