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

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

◆ dangers

std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::dangers

◆ goals

std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::goals

◆ groundY

float eve::gpuagents::EnvironmentSnapshot::groundY = 0.f

◆ nutrients

std::vector<EnvironmentMarker> eve::gpuagents::EnvironmentSnapshot::nutrients

◆ 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}

◆ windVelocity

glm::vec3 eve::gpuagents::EnvironmentSnapshot::windVelocity {0.f}

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