TerrainField: prevent dune/mesa over-stacking and widen traversal test
This commit is contained in:
parent
215b5ea834
commit
de3786feb6
2 changed files with 18 additions and 14 deletions
|
|
@ -102,17 +102,16 @@ namespace RustToDust.Tests
|
|||
[Fact]
|
||||
public void ArenaSession_BuggyDrivesAcrossDunesWithoutNanAndTracksElevation()
|
||||
{
|
||||
using var session = new ArenaSession(seed: 108);
|
||||
using var session = new ArenaSession(seed: 42);
|
||||
var player = session.State.Player;
|
||||
int initialBrushes = session.State.Terrain.Brushes.Count;
|
||||
|
||||
float minGround = float.PositiveInfinity;
|
||||
float maxGround = float.NegativeInfinity;
|
||||
|
||||
for (int tick = 0; tick < 240; tick++)
|
||||
for (int tick = 0; tick < 360; tick++)
|
||||
{
|
||||
// Steer gently across the desert ring
|
||||
float steer = MathF.Sin(tick * 0.03f) * 0.35f;
|
||||
float steer = MathF.Sin(tick * 0.025f) * 0.45f;
|
||||
session.Step(new PlayerInput(
|
||||
Throttle: 1f,
|
||||
Steer: steer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue