• <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)這個數量是一個人為的限制,可以通過修改代碼突破此限制。
            日本高清无卡码一区二区久久| 精品久久久久久国产| 国产高潮久久免费观看| 久久久久亚洲精品无码网址| 欧美日韩精品久久久久 | 久久久久97国产精华液好用吗| 久久伊人影视| 久久九九青青国产精品| 久久久亚洲AV波多野结衣 | 久久久久一区二区三区| 伊人色综合九久久天天蜜桃| 久久电影网2021| 国产成年无码久久久免费| 99久久国产综合精品成人影院| 亚洲精品美女久久久久99小说 | 国产成人精品久久| 久久精品一本到99热免费| 久久99久久成人免费播放| 久久久久夜夜夜精品国产| 久久精品亚洲精品国产色婷| 日本加勒比久久精品| 99久久精品免费看国产| 久久精品国产99国产电影网 | 日批日出水久久亚洲精品tv| 久久精品国产精品亚洲精品| 久久国产亚洲高清观看| 亚洲午夜久久久久妓女影院| 一本一道久久a久久精品综合 | 香蕉久久av一区二区三区| 久久综合亚洲色HEZYO社区 | 国产免费久久精品丫丫| 青青草国产精品久久| 麻豆精品久久精品色综合| 久久精品九九亚洲精品天堂| 波多野结衣中文字幕久久| .精品久久久麻豆国产精品| 麻豆成人久久精品二区三区免费 | 亚洲精品高清久久| 国产高清国内精品福利99久久| 国产精品熟女福利久久AV| 精品熟女少妇aⅴ免费久久|