载入中...
搜索中...
未找到
eve::crowd::SpawnBatch结构体 参考

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.

在文件 Crowd.h 第 77 行定义.

类成员变量说明

◆ agents

std::vector<SpawnRequest> eve::crowd::SpawnBatch::agents

在文件 Crowd.h 第 78 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().

◆ maxChecks

int eve::crowd::SpawnBatch::maxChecks = 1000000

Combined candidate/neighbor work budget, at most ten million.

在文件 Crowd.h 第 83 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().

◆ maxDistance

float eve::crowd::SpawnBatch::maxDistance = 64.f

Maximum relocation from each requested/original position.

在文件 Crowd.h 第 80 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().

◆ maxPasses

int eve::crowd::SpawnBatch::maxPasses = 64

Contact relaxation limit, at most 256.

在文件 Crowd.h 第 82 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().

◆ policy

SpawnPolicy eve::crowd::SpawnBatch::policy = SpawnPolicy::PushNeighbors

在文件 Crowd.h 第 79 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().

◆ searchSpacing

float eve::crowd::SpawnBatch::searchSpacing = 1.f

NearestFree samples concentric rings at this spacing.

在文件 Crowd.h 第 81 行定义.

被这些函数引用 eve::crowd::Crowd::applySpawnBatch().


该结构体的文档由以下文件生成: