Move gravity terrain math into daemon render queries

This commit is contained in:
Meta Vens 2026-06-21 15:10:54 +01:00
commit 0b66c928db
7 changed files with 150 additions and 6 deletions

View file

@ -669,6 +669,10 @@ public class DaemonRuntimeDocumentTests
var zone = new AetheriaRuntimeZoneSnapshotCommit
{
ZoneIndex = 0,
GravityTerrainRadius = 100,
GravityTerrainDepth = 2,
GravityTerrainDepthExponent = 1,
GravityTerrainWaveFrequency = 1,
Bodies = new[]
{
new AetheriaRuntimeBodySnapshotCommit
@ -721,6 +725,9 @@ public class DaemonRuntimeDocumentTests
Assert.AreEqual(9, brushes[0].WaveRadius);
Assert.AreEqual(3, brushes[0].WaveDepth);
Assert.AreEqual(2, brushes[0].WaveSpeed);
var height = AetheriaRuntimeDaemonRenderQueries.EvaluateGravityTerrainHeight(zone, 4, 0, 0);
Assert.AreEqual(-24.9968, height, 0.0001);
}
[Test]