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

单个单位的状态快照(脚本 getAgentState 返回值)。 action: 0=idle, 1=flow, 2=seek, 3=boids。 更多...

#include <Crowd.h>

Public 属性

float x = 0.f
 世界 X
 
float y = 0.f
 世界 Y
 
float heading = 0.f
 朝向(弧度,0=+X)
 
float speed = 0.f
 当前速度大小
 
float vx = 0.f
 速度 X
 
float vy = 0.f
 速度 Y
 
int action = -1
 行动枚举(-1=非法 id)
 
int data = 0
 游戏自定义标记
 
int avoidancePriority = 0
 Higher-priority agents yield less during overlap resolution.
 

详细描述

单个单位的状态快照(脚本 getAgentState 返回值)。 action: 0=idle, 1=flow, 2=seek, 3=boids。

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

类成员变量说明

◆ action

int eve::crowd::AgentState::action = -1

行动枚举(-1=非法 id)

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

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

◆ avoidancePriority

int eve::crowd::AgentState::avoidancePriority = 0

Higher-priority agents yield less during overlap resolution.

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

◆ data

int eve::crowd::AgentState::data = 0

游戏自定义标记

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

◆ heading

float eve::crowd::AgentState::heading = 0.f

朝向(弧度,0=+X)

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

◆ speed

float eve::crowd::AgentState::speed = 0.f

当前速度大小

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

◆ vx

float eve::crowd::AgentState::vx = 0.f

速度 X

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

◆ vy

float eve::crowd::AgentState::vy = 0.f

速度 Y

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

◆ x

float eve::crowd::AgentState::x = 0.f

世界 X

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

◆ y

float eve::crowd::AgentState::y = 0.f

世界 Y

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


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