BehaviorDesigner 内置人物中英对照.docx_第1页
BehaviorDesigner 内置人物中英对照.docx_第2页
BehaviorDesigner 内置人物中英对照.docx_第3页
BehaviorDesigner 内置人物中英对照.docx_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Composites 复合任务Sequence 顺序任务/序列任务The Sequence task is similar to an and operation. It will return Failure as soon as one of its child tasks return Failure. If a child task returns Success then it will sequentially run the next task. If all child tasks return Success then it will return Success.Sequence任务类似于“and”操作。一旦其子任务之一返回Failure,它将返回Failure。如果子任务返回Success,那么它将按顺序执行下一个任务。如果所有子任务返回Success,那么它将返回Success。Selector 选择任务The Selector task is similar to an or operation. It will return Success as soon as one of its child tasks return Success. If a child task returns Failure then it will sequentially run the next task. If no child task returns Success then it will return Failure.Selector任务类似于“or”操作。一旦其子任务之一返回Success,它将返回Success。如果子任务返回Failure,则它将按顺序执行下一个任务。如果没有子任务返回Success,则它将返回Failure。Parallel 并行任务Similar to the Sequence task, the Parallel task will run each child task until a child task returns Failure. The difference is that the Parallel task will run all of its children tasks simultaneously versus running each task one at a time. Like the Sequence class, the Parallel task will return Success once all of its children tasks have return Success. If one tasks returns Failure the Parallel task will end all of the child tasks and return Failure.与Sequence任务类似,Parallel任务将运行每个子任务,直到子任务返回Failure。不同的是,并行任务将同时运行其所有子任务,而不是每次运行一个任务。像Sequence任务一样,当所有的子任务都返回Success时,Parallel任务将返回Success。如果一个任务返回Failure,Parallel任务将结束所有子任务并返回Failure。Parallel Selector 并行选择任务Similar to the Selector task, the Parallel Selector task will return Success as soon as a child task returns Success. The difference is that the Parallel Selector task will run all of its children tasks simultaneously versus running each task one at a time. If one tasks returns Success the Parallel Selector task will end all of the child tasks and return Success. If every child task returns Failure then the Parallel Selector task will return Failure.与Selector任务类似,只要子任务返回Success,Parallel Selector任务将返回Success。不同之处在于,Parallel Selector任务将同时运行其所有子任务,而不是每次运行一个任务。如果一个任务返回Success,Parallel Selector任务将结束所有子任务并返回Success。如果每个子任务返回Failure,则Parallel Selector任务将返回Failure。Priority Selector 优先级选择人物Similar to the Selector task, the Priority Selector task will return Success as soon as a child task returns Success. Instead of running the tasks sequentially from left to right within the tree, the Priority Selector will ask the task what its priority is to determine the order. The higher priority tasks have a higher chance at being run first.与Selector任务类似,一旦子任务返回Success,Priority Selector任务将返回Success。而不是在树内从左到右依次运行任务,Priority Selector将询问子任务它的优先级是什么来确定顺序。较高优先级任务首先运行的可能性较高。Random Selector 随机选择任务Similar to the Selector task, the Random Selector task will return Success as soon as a child task returns Success. The difference is that the Random Selector class will run its children in a random order. The Selector task is deterministic in that it will always run the tasks from left to right within the tree. The Random Selector task shuffles the child tasks up and then begins execution in a random order. Other than that the Random Selector class is the same as the Selector class. It will continue running tasks until a task completes successfully. If no child tasks return Success then it will return Failure.seedSeed the random number generator to make things easier to debug.useSeedDo we want to use the seed?与Selector任务类似,Random Selector任务将在子任务返回Success时立即返回Success。区别是Random Selector类将以随机顺序运行其子元素。Selector任务是确定性的,因为它总是在树内从左到右运行任务。Random Selector任务将子任务随机排序,然后以随机顺序开始执行。除此之外,Random Selector类与Selector类相同。它将继续运行任务,直到任务成功完成。如果没有子任务返回Success,那么它将返回Failure。seed随机数种子useSeed是否使用随机数种子Random Sequence 随机序列任务Similar to the Sequence task, the Random Sequence task will return Success as soon as every child task returns Success. The difference is that the Random Sequence class will run its children in a random order. The Sequence task is deterministic in that it will always run the tasks from left to right within the tree. The Random Sequence task shuffles the child tasks up and then begins execution in a random order. Other than that the Random Sequence class is the same as the Sequence class. It will stop running tasks as soon as a single task ends in Failure. On a task Failure it will stop executing all of the child tasks and return Failure. If no child returns Failure then it will return Success.seedSeed the random number generator to make things easier to debug.useSeedDo we want to use the seed?与Sequence任务类似,只要每个子任务返回Success,Random Sequence任务都将返回Success。不同之处在于,Random Sequence类将以随机顺序运行其子项。 Sequence任务是确定性的,因为它将总是在树内从左到右运行任务。Random Sequence任务将子任务随机排序,然后以随机顺序开始执行。除此之外,Random Sequence类与Sequence类相同。一个任务在失败结束后立即停止运行任务。在任务失败时,它将停止执行所有子任务并返回Failure。如果没有子进程返回Failure,那么它将返回Success。seed随机数种子useSeed是否使用随机数种子Selector EvaluatorThe Selector Evaluator is a Selector task which reevaluates its children every tick. It will run the lowest priority child which returns a task status of running. This is done each tick. If a higher priority child is running and the next frame a lower priority child wants to run it will interrupt the higher priority child. The selector evaluator will return success as soon as the first child returns success otherwise it will keep trying higher priority children. This task mimics the conditional abort functionality except the child tasks dont always have to be Conditional tasks.Selector Evaluator是一个选择器任务,它每个tick重新评估所有子任务。它将运行返回任务状态为running的最低优先级子任务。每个tick都会这样执行一遍。如果有较高优先级的子任务正在运行,并且下一帧有一个较低优先级的子任务想要运行,将中断较高优先级的子任务。一旦第一个子任务返回Success,Selector Evaluator将返回Success,否则它将继续尝试更高优先级的子任务。此任务模拟条件中止功能,但子任务不一定是Conditional任务。Utility SelectorThe Utility Selector task evaluates the child tasks using utility theory AI. The child task can override the at that particular time. The task with the highest utility value will be selected and the existing running task will be aborted. The Utility Selector task reevaluates its children every tick.Utility Selector任务使用utility theory AI来评估子任务。子任务可以在特定时间重写(这句没搞懂,大概是这个意思)。具有最高效用值(utility value)的任务会被选中,并且中止正在运行的任务。Utility Selector任务每个tick都会重新评估所有子任务。Decorators 装饰任务Actions 动作任务Conditionals 条件任务Task GuardThe Task Guard task is similar to a semaphore in multithreaded programming. The task guard task is there to ensure a limited resource is not being overused. For example, you may place a task guard above a task that plays an animation. Elsewhere within your behavior tree you may also have another task that plays a different animation but uses the same bones for that animation. Because of this you dont want

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论