← 返回图形编程

自主智能体转向行为

基于 Craig Reynolds 理论的 11 种角色动画转向行为

日期 2025年3月
标签
c++opengleigenimgui
自主智能体转向行为 - media 1
Seek 行为预览
0:00 / 0:00
Avoid
0:00 / 0:00
Leader Following
0:00 / 0:00
Flocking
0:00 / 0:00
Alignment
0:00 / 0:00
Seek
0:00 / 0:00
Flee
0:00 / 0:00
Arrival
0:00 / 0:00
Departure
0:00 / 0:00
Wander
0:00 / 0:00
Separation
0:00 / 0:00
Cohesion

概述

实现了 11 种角色动画转向行为:寻找(Seek)、逃离(Flee)、到达(Arrival)、离开(Departure)、漫游(Wander)、障碍物避让(Obstacle Avoidance)、分离(Separation)、聚合(Cohesion)、对齐(Alignment)、群集(Flocking)和跟随领导者(Leader Following)。基于 Craig Reynolds 1999 年的研究成果,使用感知-控制-行动循环驱动 2D 载体。

工具

使用 C++、OpenGL、CMake、Eigen 和 ImGui 构建。