Log inGet started
Package

endlessStairs_guards.testSuite

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

endlessStairs_guards

Checks that the course's solid guard boxes (guardShape = "boxes", the tumbling preset) are sized right and leave no gaps.

guard boxes are sized right and leave no gaps builds 300 m of a tumbling course (seed 23, with zigzag S-bends, curved, broken, floating and rampsteps chunks). It checks that every box is at most 1.5 m long and 1 m thick. It then probes points just behind the visible wall every 0.25 m along every wall run, 1.5 to 13.5 m above the treads and across every chunk join. Every point must lie inside a guard box, which catches gaps between boxes, at joins and on the outside of tight bends.

Test suites run in edit mode, where bodies do not move, so the moving-body test is the endlessStairs.bodyTest module and runs in play: require("endlessStairs.bodyTest").run({ seed = 7, length = 420 }), pass = outside == 0. The suite leaves the visible geometry, the streaming budget and the stair surface colliders to other checks. Run it with asset.resolve("endlessStairs_guards", "testSuite"):run().