官术网_书友最值得收藏!

Summing steering forces

So far, we've been adding weighted steering forces together and applying forces when certain thresholds have been met, but what does all this really do to an agent's locomotion? The two most common techniques that are used to add different steering forces together are through a weighted sums approach or a priority-based approach.

Weighted sums

A weighted sums approach takes all the steering forces into account all the time using fixed coefficients that weigh each force against every other. While this is very intuitive with a small number of forces, it can get very hard to balance competing forces together when a large number of different steering forces are being used.

Typically, this should be your first approach to get the agents to move, but when complex situations need to be handled, it's better to go with a priority-based approach.

Priority-based forces

When dealing with priorities, only certain forces are taken into account based on some sort of priority or condition. For example, you can have a system that disregards all forces that are smaller than some amount or allow a round-robin style of applying forces, letting each force have a small fraction of time to apply the steering. Allowing a round robin approach can fix issues that appear in a weighted sums approach where steering forces cancel each other out and essentially leave the agent with no ability to move.

Neither the weighted sums nor the priority-based approach is perfect; both methods take a good amount of work to finely tune the agents to their expected locomotion behaviors.

主站蜘蛛池模板: 彰化县| 百色市| 阜新市| 永修县| 西丰县| 德格县| 全南县| 宜君县| 威海市| 汪清县| 永清县| 大理市| 九江市| 德格县| 宾川县| 青海省| 湖北省| 弥渡县| 天峻县| 新乡市| 宁强县| 探索| 上杭县| 揭东县| 寿宁县| 建始县| 广昌县| 普兰店市| 清河县| 灌阳县| 鸡泽县| 安图县| 和田市| 河西区| 喀什市| 布拖县| 中牟县| 双城市| 惠水县| 大丰市| 铁岭市|