Mass Battle Frameworkv1.20.0
v1.20.0 UE 5.6 Fab

十万单位同屏对战,60 FPS 100,000+ agents at 60 FPS

一套完整的群体战斗框架:单位、阵型、移动、索敌、攻击、受击、死亡、掉落、选择、网络锁步,全部能在蓝图里接起来,C++ 还能走简化 API 更进一步。纯 CPU 驱动,模拟与表现是同一份数据——每一帧都能在编辑器里查。 A complete crowd-combat framework: units, formation, movement, targeting, attack, hit, death, loot, selection and network lockstep, all wireable in Blueprint, with a simplified C++ API when you want to go deeper. Fully CPU-driven, so simulation and presentation are the same data — every frame inspectable in the editor.

▶

宣传视频位——给出链接即可换上Showreel slot — give it a URL and it plays here

100,000+同屏单位agents on screen
60 FPS目标帧率target frame rate
10K+锁步联网单位lockstep-linked agents
15编辑器语种editor languages

为什么用它 Why Teams Pick It

蓝图优先 Blueprint-first

生成、移动、阵型、伤害、框选等二十余组功能全部蓝图可达;单位、投射物、掉落三个事件接口让任意 Actor 接收游戏事件。C++ 层提供同一套能力的完整 API。More than twenty feature groups — spawn, movement, formation, damage, selection and more — are reachable from Blueprint; three event interfaces let any actor receive game events; the C++ layer exposes the same capabilities in full.

一个资产配一个单位 One asset per unit

单位的全部行为参数集中在一份 Agent Config 里:感知、索敌、移动、攻击、受击、死亡、掉落、动画与表现。烘焙工具把这套配置变成运行时资产,改一个数字就换一种打法。A unit's whole behaviour lives in one Agent Config: perception, targeting, movement, attack, hit, death, loot, animation and looks. The bake tools turn that config into runtime assets, so one number changes one behaviour.

确定性锁步 Deterministic lockstep

联机走确定性锁步:同样的输入、同样的 tick,每个端得到同样的结果,逐位一致。快照与哈希注册表让静默分叉看得见,能定位到是哪个片段的哪个字段先分叉。接入流程见网络同步。Networking runs deterministic lockstep: same input, same tick, same result on every peer, bit for bit. The snapshot and hash registries make silent divergence visible and point at the fragment and field that forked first. The wiring walkthrough is in Network Sync.

编辑器工具链 An editor toolchain

网格与动画准备、图集 sprite、多部件装配、材质槽图集、网格合并、LOD 标准化、批量改名——每一步都有面板,每个面板的动作同时是一条可脚本化的命令。Mesh and animation prep, atlas sprites, multi-part assembly, material-slot atlas, mesh merge, LOD standardisation, batch rename — every step has a panel, and every panel action is also a scriptable command.

给人也给 AI Built for people and for agents

命令层返回结构化结果:成功与否、稳定错误码、消息、产物清单。人点按钮与 AI 发命令走同一个入口,所以自动化绕不开面板的校验,面板也藏不住只有脚本能做的事。The command layer returns structured results: ok flag, stable error code, message, produced assets. A click and an agent call enter the same door, so automation cannot bypass the panel's validation — and the panel hides no action that only a script can do.

纯 CPU,可检查 CPU-driven and inspectable

模拟完全跑在 CPU 上,没有 GPU 回读、没有藏起来的中间态。选中任何一个单位都能看到它这一刻持有的全部片段;失步时两端的差异可以逐字段打出来。The simulation runs entirely on the CPU — no GPU readback, no hidden intermediate state. Select any agent and see every fragment it holds right now; on a desync the two peers' differences print field by field.

能做什么 What It Does

上面说的是我们为什么这么做,这里是具体能做到什么。每一条都能点到对应的指南或 API。

The section above is why we built it this way; this is what it actually does. Each item links to its guide or API.

全套单位行为The complete behaviour set

出生、睡眠、巡逻、追击、攻击、增援、返回、受击、死亡九种行为状态机;视觉感知(锥体/视距/丢失重追踪)可配置,全部由兵种 DataAsset 驱动。见功能与源码对照。Birth, sleep, patrol, chase, attack, reinforce, return, hit and death behaviour states; configurable vision perception (cone / range / lost-target retrace) — all driven by per-unit DataAssets. See features mapped to source.

人群移动与避障Crowd movement and avoidance

RVO2 避障、可选交通规则层(车道、侧让、绕行、贴墙)与 PBD 碰撞兜底;生物/载具/飞行器三种移动模型,支持飞行、坠落与坡面贴合。见运动模型。RVO2 avoidance, an optional traffic-rules layer (lanes, side-step, flank, wall-slide) and PBD collision as the floor; creature / vehicle / aircraft models with flying, falling and slope alignment. See the Movement Model.

混合寻路Hybrid pathfinding

流场服务人群、A* 服务单体;格网与 NavMesh 双来源,支持 Nav 链接、成本/方向修改器、多目标流场与异步寻路。流场 API。Flow fields for crowds, A* for individuals; grid and NavMesh sources with nav links, cost / direction modifiers, multi-goal fields and async pathing. Flow-field API.

伤害、减益与投射物Damage, debuffs and projectiles

点伤/径向/光束三种伤害,击飞/减速/时序伤害三种减益,冰冻/燃烧/中毒/受击发光/溶解/队伍色六种材质特效;投射物支持静态/弹道/插值/跟踪四模式与带预测的弹道求解器。逐项对照源码。Point / radial / beam damage, launch / slow / temporal debuffs and six material FX (freeze / burn / poison / hit glow / dissolve / team colour); projectiles support static / ballistic / interped / tracking modes with a predictive launch-velocity solver. Each mapped to source.

GPU 人群表现GPU crowd rendering

Niagara 粒子人群带 GPU 帧间插值;插值血条、伤害跳字(最多 3 位小数)、合批爆发/附着 FX;VAT 动画按 LOD 分档混合。渲染结构见渲染管线,制作流程见制作与烘焙。Niagara particle crowds with GPU frame interpolation; interpolated health bars, damage text pops (up to 3 decimals), batched burst / attached FX; VAT animation blended per LOD. Structure in the Render Pipeline, workflow in Authoring & Baking.

1.20 新增 New in 1.20

这一版把动画表、瞄准、生成时机与渲染状态四块重新整理过。完整的升级步骤在更新日志里,逐参数对照表也在那一页。

This release rebuilt four carriers: the animation tables, aiming, spawn timing and render state. The full upgrade path lives in the changelog, per-parameter tables included.

瞄准成为独立行为 Aiming is its own behaviour

瞄准关节有偏航与俯仰两半,各自带速度、加速度与到位容差;两轴都到位才允许击发。The aim joint has yaw and pitch halves, each with speed, acceleration and an on-target tolerance; the shot waits until both are in place.

通知表 Notify table

出生、攻击、受击、死亡、选择各处要生成的东西,现在是一张按事件与阶段索引的表。Everything spawned on birth, attack, hit, death and selection is now one table indexed by event and stage.

每 agent 动画套 Per-agent animation sets

同一兵种的每个单位可以在出生时抽到不同的动画组合。Each unit of the same type can draw a different animation combination at birth.

命中体积与插槽 Hit volumes and sockets

武器可以声明多个命中体与命中通道;骨骼插槽能烘成实体附着的落点。A weapon can declare several hit volumes and channels; bone sockets bake into attachment anchors for entities.

从哪开始 Where to Start