• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理
            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】類是十分龐雜的一個類。它不僅為你處理了非常多的路徑管理相關(guān)的事情,同時也處理一些局部轉(zhuǎn)向和避開其它尋路代理對象。也就是說,他可以讓所有的代理對象不會相互穿插。


            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這兩個類已經(jīng)很不錯了,用來做路徑規(guī)劃也足夠簡單。但是說到底它們只是給了你一堆指導(dǎo)角色運動的路點。當你決定實現(xiàn)一些角色之間不發(fā)生碰撞的特性時,只能你自己實現(xiàn)了。除非,當然,你決定使用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添加一個角色,同時提供一些配置數(shù)據(jù),例如最大速度和加速度。你也可以提供一個局部的目標(讓角色自主的移動過去(1))。然后CrowdManager會在每幀更新的時候設(shè)置角色的最新位置和速度。運動會被約束在Navmesh內(nèi),CrowdManager會讓角色在需要的時候進行轉(zhuǎn)向,以確保不會相互碰。


            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來控制。你可以更新類似最大速度和加速度之類的參數(shù)。但是為了讓CrowdManager能正常工作,你不能經(jīng)常的改變角色的位置和速度。因此你需要放棄管理角色運動。這個工作現(xiàn)在屬于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.


            其他明顯的限制
            所有托管的角色都使用同樣的查詢過濾器
            人群管理的開銷相對較大??梢怨芾淼娜巳旱膫€體數(shù)量最大約為20個(1)。


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




            (1)需要實驗?
            (1)這個數(shù)量是一個人為的限制,可以通過修改代碼突破此限制。
            久久精品无码一区二区三区日韩 | 精品国产青草久久久久福利| 久久国产精品成人免费| 观看 国产综合久久久久鬼色 欧美 亚洲 一区二区 | 日韩久久无码免费毛片软件| 久久久久免费精品国产| 久久99精品久久久久久久不卡 | 久久精品国产亚洲AV不卡| 国产精品乱码久久久久久软件| 婷婷综合久久中文字幕蜜桃三电影| AV无码久久久久不卡蜜桃| 亚洲人成无码网站久久99热国产 | 久久综合狠狠综合久久| 久久99精品久久久久婷婷| 久久男人中文字幕资源站| 人妻无码久久一区二区三区免费| 久久高潮一级毛片免费| 久久精品无码午夜福利理论片| 亚洲欧美一区二区三区久久| 久久香蕉综合色一综合色88| 色妞色综合久久夜夜| 久久久精品波多野结衣| 亚洲国产精久久久久久久| 久久水蜜桃亚洲av无码精品麻豆| 一本大道久久香蕉成人网| 久久久免费观成人影院| 国内精品久久久久影院网站| 狠狠狠色丁香婷婷综合久久俺| 中文字幕乱码久久午夜| 99久久国产亚洲综合精品| 热RE99久久精品国产66热| 久久亚洲国产成人影院网站| 久久久国产精品网站| 99久久免费国产特黄| 日本欧美久久久久免费播放网| 久久久精品一区二区三区| 久久91精品久久91综合| 精品久久久久久无码专区| 成人国内精品久久久久一区| 久久99精品久久久久子伦| 日本免费久久久久久久网站|