Caller-built transaction; positive budgets bound search and relaxation. @cost Linear in requested agents plus bounded candidate/contact checks; callers amortize by batching spawns. 更多...
#include <Crowd.h>
Public 属性 | |
| std::vector< SpawnRequest > | agents |
| SpawnPolicy | policy = SpawnPolicy::PushNeighbors |
| float | maxDistance = 64.f |
| Maximum relocation from each requested/original position. | |
| float | searchSpacing = 1.f |
| NearestFree samples concentric rings at this spacing. | |
| int | maxPasses = 64 |
| Contact relaxation limit, at most 256. | |
| int | maxChecks = 1000000 |
| Combined candidate/neighbor work budget, at most ten million. | |
详细描述
Caller-built transaction; positive budgets bound search and relaxation. @cost Linear in requested agents plus bounded candidate/contact checks; callers amortize by batching spawns.
类成员变量说明
◆ agents
| std::vector<SpawnRequest> eve::crowd::SpawnBatch::agents |
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
◆ maxChecks
| int eve::crowd::SpawnBatch::maxChecks = 1000000 |
Combined candidate/neighbor work budget, at most ten million.
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
◆ maxDistance
| float eve::crowd::SpawnBatch::maxDistance = 64.f |
Maximum relocation from each requested/original position.
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
◆ maxPasses
| int eve::crowd::SpawnBatch::maxPasses = 64 |
Contact relaxation limit, at most 256.
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
◆ policy
| SpawnPolicy eve::crowd::SpawnBatch::policy = SpawnPolicy::PushNeighbors |
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
◆ searchSpacing
| float eve::crowd::SpawnBatch::searchSpacing = 1.f |
NearestFree samples concentric rings at this spacing.
被这些函数引用 eve::crowd::Crowd::applySpawnBatch().
该结构体的文档由以下文件生成:
- src/modules/crowd/Crowd.h