Read-only environment semantics prepared by GpuAgentWorld each tick. 更多...
#include <EnvironmentSnapshot.h>
Public 属性 | |
| glm::vec3 | waterCurrent {0.f} |
| glm::vec3 | windVelocity {0.f} |
| float | groundY = 0.f |
| float | ceilingY = 40.f |
| std::vector< EnvironmentMarker > | goals |
| std::vector< EnvironmentMarker > | dangers |
| std::vector< EnvironmentMarker > | nutrients |
| const ObstacleField * | obstacles = nullptr |
| SurfaceField * | surface = nullptr |
| optional; Life Network writes trails here | |
详细描述
Read-only environment semantics prepared by GpuAgentWorld each tick.
Solvers must not mutate World-owned fields; they may write into a Simulation-local SurfaceField copy when the effect owns life-field evolution.
在文件 EnvironmentSnapshot.h 第 26 行定义.
类成员变量说明
◆ ceilingY
| float eve::gpuagents::EnvironmentSnapshot::ceilingY = 40.f |
在文件 EnvironmentSnapshot.h 第 30 行定义.
被这些函数引用 eve::gpuagents::GpuAgentWorld::makeSnapshot() , 以及 eve::gpuagents::BirdSolver::step().
◆ dangers
| std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::dangers |
◆ goals
| std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::goals |
◆ groundY
| float eve::gpuagents::EnvironmentSnapshot::groundY = 0.f |
在文件 EnvironmentSnapshot.h 第 29 行定义.
被这些函数引用 eve::gpuagents::GpuAgentWorld::makeSnapshot() , 以及 eve::gpuagents::BirdSolver::step().
◆ nutrients
| std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::nutrients |
在文件 EnvironmentSnapshot.h 第 34 行定义.
被这些函数引用 eve::gpuagents::GpuAgentWorld::makeSnapshot() , 以及 eve::gpuagents::LifeNetworkSolver::step().
◆ obstacles
| const ObstacleField* eve::gpuagents::EnvironmentSnapshot::obstacles = nullptr |
◆ surface
| SurfaceField* eve::gpuagents::EnvironmentSnapshot::surface = nullptr |
optional; Life Network writes trails here
在文件 EnvironmentSnapshot.h 第 37 行定义.
被这些函数引用 eve::gpuagents::GpuAgentWorld::makeSnapshot() , 以及 eve::gpuagents::LifeNetworkSolver::step().
◆ waterCurrent
| glm::vec3 eve::gpuagents::EnvironmentSnapshot::waterCurrent {0.f} |
在文件 EnvironmentSnapshot.h 第 27 行定义.
被这些函数引用 eve::gpuagents::GpuAgentWorld::makeSnapshot() , 以及 eve::gpuagents::FishSolver::step().
◆ windVelocity
| glm::vec3 eve::gpuagents::EnvironmentSnapshot::windVelocity {0.f} |
该结构体的文档由以下文件生成:
- src/modules/gpuagents/EnvironmentSnapshot.h