载入中...
搜索中...
未找到
单个单位的状态快照(脚本 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. | |
详细描述
类成员变量说明
◆ action
| int eve::crowd::AgentState::action = -1 |
◆ avoidancePriority
| int eve::crowd::AgentState::avoidancePriority = 0 |
◆ data
◆ heading
◆ speed
◆ vx
◆ vy
◆ x
◆ y
该结构体的文档由以下文件生成:
- src/modules/crowd/Crowd.h