载入中...
搜索中...
未找到
CrowdInternal.h
浏览该文件的文档.
Definition Crowd.cpp:14
Optional bounded velocity sampling for RTS local avoidance.
Definition Crowd.h:48
Private crowd runtime storage. @cost Linear in agent count for SOA vectors and transient broadphase/a...
Definition CrowdInternal.h:17
std::vector< int32_t > cellCount
Per-frame counting-sort broadphase workspace. @cost Linear in grid cells plus agent count when rebuil...
Definition CrowdInternal.h:71
std::vector< float > xs
SOA agent storage, indexed by compact slot id. @cost Linear in agent count; mutation keeps all owned ...
Definition CrowdInternal.h:54
std::vector< AvoidanceNeighbor > avoidanceNeighbors
Per-step avoidance neighbor scratch space. @cost Linear in checked neighbors and bounded by avoidance...
Definition CrowdInternal.h:47
float resolveOverlapsPass()
Definition CrowdSimulation.cpp:260
std::unordered_map< std::string, int > namedAgents
Definition CrowdInternal.h:64
std::vector< float > arriveFactors
Definition CrowdInternal.h:56
std::vector< int32_t > avoidancePriorities
Definition CrowdInternal.h:58
void selectAvoidanceVelocity(size_t index, float dt, float &vx, float &vy)
Definition CrowdAvoidance.cpp:19
void forEachNeighbor(float qx, float qy, float radius, Fn &&fn) const
Definition CrowdInternal.h:88
std::vector< AgentInteraction > interactions
Definition CrowdInternal.h:60
bool canInteract(size_t a, size_t b) const
Definition CrowdInternal.h:80