- CrowdField: Dijkstra integration field to continuous gradient flow field with bilinear sampling, terrain cost and multi-goal support - Crowd: SOA simulation for massive crowds - flow/seek/boids/idle actions, turn-rate-limited heading, Boids separation/alignment/ cohesion, wall penetration resolution, per-frame counting-sort spatial grid and overlap relaxation - Squirrel API: eve.Crowd with batch getPositions/getHeadings - example: examples/crowd (2000-agent marching / boids demo) - tests: flow field correctness, turning, seek arrival, boids convergence, wall penetration, 20k-agent smoke + script round-trip
13 lines
364 B
C++
13 lines
364 B
C++
#include "ScriptTest.h"
|
|
|
|
extern const char *crowd_content;
|
|
UnitSciptTest(CrowdScriptTest, crowd_content);
|
|
|
|
TEST_CASE_FIXTURE(CrowdScriptTest, "CrowdScriptTest.basic") {
|
|
CHECK(vm.callFunc(vm.findFunc("basic"), vm).toBool());
|
|
}
|
|
|
|
TEST_CASE_FIXTURE(CrowdScriptTest, "CrowdScriptTest.invalidIds") {
|
|
CHECK(vm.callFunc(vm.findFunc("invalidIds"), vm).toBool());
|
|
}
|