脚本/功能 Reaction AI 2.0 人工智能引擎

插件名称:Reaction AI 2.0插件官网:访问官网
版权协议:Red pine1.1解压密码:通用密码
Reaction AI 2.0

Reaction AI 2.0

Reaction AI 2.0

Requires Unity 5.4.3 or higher.
v2.0
Reaction AI is an artificial intelligence engine to be used for game developers that have non-player characters governed by AI or other game components that rely on artificial intelligence for reactions based on actions by the avatar. 反应人工智能是一个人工智能引擎,用于游戏开发者,他们拥有由人工智能控制的非玩家角色,或者其他游戏组件,这些组件依靠人工智能根据虚拟人物的动作做出反应。
It can also be used for other systems that require learning systems and provides an intelligent output based on input. Reaction AI models the human brain and neural networks in its design. It learns over time and uses past events in a memory system to determine the next best reaction. However, it is pseudo-dynamic in the resulting output based on how well the “brain” is functioning at that time based on stimuli.

The “brain” is divided into four components, each sized proportionally to the human mind. This includes the Frontal Lobe which performs reasoning and emotion, the Parietal Lobe for movement, the Occipital Lobe for visuals, and the Temporal Lobe for memory. When the “brain” is created, the number of total neurons must be specified. This will generate an n-ary tree. At each time a new “brain” is created (i.e. for different NPCs), a different brain structure is created dynamically and pseudo-randomly. When stimuli is applied (i.e. an avatar action), Reaction AI will send a random set (within a range) of electrons to each component of the brain (also proportional to the size of the respective lobe) to activate a subset of the neurons.

The algorithm uses the active neurons to total neurons to determine the performance of the “brain” in each of the lobes for their respective purpose. Thus, a better functioning “brain” will yield more “intelligent” results. Each time stimuli is applied, the “brain” will function slightly better or worse due to the difference in the number of active neurons. This is done by ranking the results and using data based on whether it can map the avatar action with a calculated emotion and prior reaction data for what the NPC “thinks” is the best next action. If certain data fails to map, fallback mechanisms are performed which still are “intelligent”.

There is a memory system where historical data is stored. When a new memory is created, the successfulness of the most recent reaction is also mapped to that memory cell. The data includes what the avatar action was, what was the AI’s output for that action, and how successful it was. This data grows over time and the “search” starts from most recent memory to earlier in time memories. However, the “search” also goes as far back in memory as the number of active neurons at that time. The maximum size of the memory is the total number of neurons in the temporal lobe. When a new memory is created, and the maximum size is reached, the oldest memory is removed. When the “brain” is created, the memory is initialized with a user defined input (one time) for the NPC’s “personality”, which defines the allowed reactions, sub-reactions, and emotions.

The final output of the system is a reaction category, sub-reaction, emotion, visual rank (ranging from 1 -5 where 1 is the lowest rank and 5 is the highest), and a speed value (ranging from 1 – 4 where 1 is the slowest and 4 is the fastest). You can decide how to handle (how the NPC behaves) based on the output, and can cause a different reaction as well based on the values returned for emotion, visuals, and speed. The neural networks involve the structure of the “brain”, the stimuli that activate neurons, the memory, and the personality, being passed to different functions in different parts of the “brain” and results in final outputs. The fact that the system is varying each time a “brain” is created, the performance of the “brain” per stimulus, and what the allowed output values can be, allow Reaction AI to be reused any number of times with varying results. Thus, the same engine can be used for any number of different NPCs or AI based elements. The user defined “size” of the “brain” also introduces dynamics.

Finally, for extremely large “brain” sizes, and longer periods of learning, Reaction AI can be as complex accordingly.

Also, for NPC attacks (proactive actions instead of reaction to avatar action), use Avatar action states as idle=1, blocking=2, starting attack=3, etc)
Requires .NET Framework 3.5 or higher

游客,如果您要查看本帖隐藏内容请回复


作者 虎哥 发表于 2019-1-25 15:12:56

yl25349558

非常好 感谢楼主的分享~
发表于 2020-3-7 10:34:59
您需要登录后才可以回帖 登录 | 立即注册
虎哥

关注0

粉丝364

发布2291

热门作品推荐
glow
Mega-Fiers 3.53 模型网格动画自定义变形弯
glow
Welding Simulation 1.0
glow
【更新】Animated FPS Weapons Pack (Part
glow
【更新】Small Fire Pack 3.0.1火焰粒子
glow
【更新】Translucent Image - Fast UI Back
glow
Firefighters with Props 1.0 3D消防员角色
glow
Citizen Characters Pack with Props 1.0 3
glow
Music Star Studio 1.0 演播室舞台
glow
【更新】GR3D Offroad Truck 021215OFFRD 2
glow
【更新】GR3D Offroad Truck 060914OFFRD 3