载入中...
搜索中...
未找到
EnvironmentSnapshot.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
6
7#include <glm/glm.hpp>
8
9#include <vector>
10
11namespace eve::gpuagents {
12
15 glm::vec3 position{0.f};
16 float radius = 2.f;
17 float strength = 1.f;
18};
19
27 glm::vec3 waterCurrent{0.f};
28 glm::vec3 windVelocity{0.f};
29 float groundY = 0.f;
30 float ceilingY = 40.f;
31
32 std::vector<EnvironmentMarker> goals;
33 std::vector<EnvironmentMarker> dangers;
34 std::vector<EnvironmentMarker> nutrients;
35
36 const ObstacleField* obstacles = nullptr;
37 SurfaceField* surface = nullptr;
38};
39
40} // namespace eve::gpuagents
#define EVENGINE_API_DOMAINS
Definition Export.h:110
Unified static + dynamic obstacle distance field.
2.5D surface + life-field textures for Life Network.
Point attractor / repulsor / danger marker in world space.
Read-only environment semantics prepared by GpuAgentWorld each tick.
std::vector< EnvironmentMarker > nutrients
std::vector< EnvironmentMarker > goals
std::vector< EnvironmentMarker > dangers