关于行为树插件Behavior Designer的学习(二)_Composites复合任务

关于行为树插件Behavior Designer的学习(二)_Composites复合任务<20/10/2017>

      Composites复合任务是一组子任务的父任务。例如,一个条件任务和一个动作任务,可以被一个复合任务组合起来,复合任务是父任务,前面两个任务是子任务。复合任务的返回值取决于他的子任务。

      行为树设计师插件有以下默认的复合任务,每个复合任务都有条件终止的选项(参考前面章节--条件终止)。

列表

名称
图标描述参数

1,Sequence                                                         


                                                

顺序执行任务:类似“and”操作,其中一个子任务返回失败,它就返回失败,全部返回成功它就返回成功
2,Selector                             .选择执行任务:类似“or”操作,其中一个子任务返回成功,它就返回成功,全部失败它就返回失败
3,Parallel并发执行任务:类似顺序执行任务,不同的是它是一起执行而不是一个一个执行,其中一个子任务返回失败,它就返回失败,全部返回成功它就返回成功
4,Parallel Selector
并发选择执行任务:类似选择执行任务,不同的是它是一起执行而不是一个一个执行,其中一个子任务返回成功,它就返回成功,全部失败它就返回失败
5,Priority Selector优先选择执行任务:类似选择执行任务,不同的是他不是从左到右执行任务,而是优先执行高级别任务,其中一个子任务返回成功,它就返回成功,全部失败它就返回失败级别高低在条件终止中设置
6,Random Selector随机选择执行任务:类似选择执行任务,不同的是他是随机选择子任务运行,其中一个子任务返回成功,它就返回成功,全部失败它就返回失败

seed
Seed the random number generator to make things easier to debug.

useSeed
Do we want to use the seed?

7,Random Sequence        随机顺序执行任务:类似顺序执行任务,不同的是他是随机选择子任务运行,其中一个子任务返回失败,它就返回失败,全部返回成功它就返回成功

seed
Seed the random number generator to make things easier to debug.

useSeed
Do we want to use the seed?

8,Selector Evaluator                                                                                                                                            选择计算任务:它每周期对子任务进行重新判断,他会运行最低级别的任务,并返回任务状态,如果一个高级别子任务正在运行,而低级别任务想要运行的时候,它会打断高级别任务,转而运行低级别任务。它会在最低级别子任务返回成功时返回成功,如果不成功,就会尝试运行高级别任务。它是不需要条件任务的一种条件终止模式的模拟。

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
This extension requires one license per seat Requires Unity 4.6.0 or higher. Behavior trees are used by AAA studios to create a lifelike AI. With Behavior Designer, you can bring the power of behaviour trees to Unity! Behavior Designer is a behaviour tree implementation designed for everyone - programmers, artists, designers. Behavior Designer offers an intuitive visual editor with a powerful API allowing you to easily create new tasks. It also includes hundreds of tasks, PlayMaker integration, and extensive third party integ ration making it possible to create complex AIs without having to write a single line of code! Behavior Designer was designed from the ground up to be as efficient as possible with zero allocations after initialization. As a result, it runs great on all platforms including mobile. Behavior Designer is dedicated to behavior trees, which means that each update will be a better behavior tree implementation. Features: - An intuitive visual editor - A powerful API - Visual runtime debugger - Variables to communicate between tasks - Conditional Aborts - Built in event system - Unity 5 multiplayer support - Use existing code with reflection tasks - Hundreds of tasks - Evaluate tasks using Utility Theory - Realtime error detection - Binary or JSON serialization - Data-oriented design - Zero runtime allocations after startup - Object drawers (property drawers) - Includes runtime source code - Extensive documentation and videos - Sample projects available online - And more Addon Packs: - Formations Pack - Movement Pack - Tactical Pack Complete Projects: - Deathmatch AI Kit Third Party Integrations: - 2D Toolkit - A* Pathfinding Project (Movement Pack) - Adventure Creator - Anti-Cheat Toolkit - Apex Path (Movement Pack) - Blox - Camera Path Animator - Chronos - Cinema Director - Control Freak - Core GameKit - Curvy - Dialogue System - DOTween - Final IK - Glow Effect - ICode - Inventory Pro - LeanTween - Love/Hate -
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值