• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 311, comments - 0, trackbacks - 0, articles - 0
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理
            The crowd manager is the big beast of the navigation components. It not only handles a lot of the path management for you, but also local steering and dynamic avoidance between navigation clients. I.e. It can keep your agents from running into each other.
            【CrowdManager】類是十分龐雜的一個類。它不僅為你處理了非常多的路徑管理相關的事情,同時也處理一些局部轉向和避開其它尋路代理對象。也就是說,他可以讓所有的代理對象不會相互穿插。


            Core Class: CrowdManager
            核心類:CrowdManager


            The NavmeshQuery and PathCorridor classes provide perfectly good, easy to use path planning features. But in the end they only give you points that your navigation client should be moving toward. When it comes to deciding things like client velocity and steering to avoid other clients, that is up to you to implement. Unless, of course, you decide to use the crowd manager.
            NavmeshQuery和PathCorridor這兩個類已經很不錯了,用來做路徑規劃也足夠簡單。但是說到底它們只是給了你一堆指導角色運動的路點。當你決定實現一些角色之間不發生碰撞的特性時,只能你自己實現了。除非,當然,你決定使用CrowdManager。


            Basically, you add an navigation client (agent) to the crowd manager, providing various configuration settings such as maximum speed and acceleration. You also provide a local target to more toward. The crowd manager then provides, with every update, the new agent position and velocity for the frame. The movement will be constrained to the navigation mesh, and steering will be applied to ensure agents managed by the crowd manager do not collide with each other.
            基本上來講,你可以往CrowdManager添加一個角色,同時提供一些配置數據,例如最大速度和加速度。你也可以提供一個局部的目標(讓角色自主的移動過去(1))。然后CrowdManager會在每幀更新的時候設置角色的最新位置和速度。運動會被約束在Navmesh內,CrowdManager會讓角色在需要的時候進行轉向,以確保不會相互碰。


            This is very powerful feature set. But it comes with limitations.
            The biggest limitation is that you must give control of the agent's position and velocity completely over to the crowd manager. You can update things like maximum speed and acceleration. But in order for the crowd manager to do its thing, it can't allow you to constantly be giving it overrides to position and velocity. So you give up direct control of the agent's movement. It belongs to the crowd manager.
            The second biggest limitation revolves around the fact that the crowd manager deals with local planning. The agent's target should never be more than 256 polygons aways from its current position. If it is, you risk your agent failing to reach its target. So you may still need to do long distance planning and provide the crowd manager with intermediate targets.


            這是一個非常強大的特性集。但是它伴隨著一些限制。
            最大的限制在于你必須將角色的位置和速度完全交給CrowdManager來控制。你可以更新類似最大速度和加速度之類的參數。但是為了讓CrowdManager能正常工作,你不能經常的改變角色的位置和速度。因此你需要放棄管理角色運動。這個工作現在屬于CrowdManager。




            Other significant limitations:
            All agents using the crowd manager use the same NavmeshQueryFilter.
            Crowd management is relatively expensive. The maximum agents under crowd management at any one time is around 20.


            其他明顯的限制
            所有托管的角色都使用同樣的查詢過濾器
            人群管理的開銷相對較大。可以管理的人群的個體數量最大約為20個(1)。


            The Sample Pack includes a Crowd Manager Demo that lets you see the manager in action.




            (1)需要實驗?
            (1)這個數量是一個人為的限制,可以通過修改代碼突破此限制。
            国产成人无码精品久久久性色| 久久一区二区免费播放| 欧美午夜A∨大片久久 | 精品久久久久久无码中文字幕 | 久久精品视屏| 久久婷婷激情综合色综合俺也去| 久久精品国内一区二区三区 | 亚洲欧美伊人久久综合一区二区| 97久久久精品综合88久久| 亚洲乱亚洲乱淫久久| 久久精品国产亚洲AV不卡| 一本一道久久精品综合 | 91精品国产91久久久久久蜜臀| 久久久青草青青国产亚洲免观| 狠狠色婷婷久久综合频道日韩| 国产69精品久久久久777| 性做久久久久久免费观看| 99久久精品国产高清一区二区| 久久福利资源国产精品999| 国产福利电影一区二区三区,免费久久久久久久精 | 亚洲va久久久噜噜噜久久天堂| 精品无码久久久久久国产| 91精品国产91久久综合| 一本久道久久综合狠狠爱| 亚洲v国产v天堂a无码久久| 久久香蕉国产线看观看乱码| 麻豆AV一区二区三区久久| 一本色道久久88综合日韩精品 | 精品久久久久成人码免费动漫| 久久国产香蕉视频| 99久久精品国产一区二区三区| 狠狠色丁香婷婷久久综合不卡 | 欧美性大战久久久久久| 国产一区二区精品久久凹凸| 88久久精品无码一区二区毛片| 久久99国产综合精品女同| 亚洲欧美日韩久久精品第一区| 久久精品国产色蜜蜜麻豆| 亚洲国产一成人久久精品| 久久亚洲精品成人AV| 久久久精品人妻一区二区三区四|