简单重构拆分 SimulationWorld

This commit is contained in:
2026-09-18 17:43:41 +08:00
parent 1e4d3ef8d7
commit 92e1ea0d55
109 changed files with 2605 additions and 1817 deletions
@@ -0,0 +1,17 @@
using Unity.Mathematics;
namespace SepCore.Simulation
{
internal static class SimulationCell
{
public static long Key(int x, int z)
{
return ((long)x << 32) ^ (uint)z;
}
public static int ToCell(float value, float cellSize)
{
return (int)math.floor(value / cellSize);
}
}
}