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

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.

主站蜘蛛池模板: 壤塘县| 昌平区| 永顺县| 景德镇市| 金昌市| 同心县| 宁晋县| 枣庄市| 年辖:市辖区| 屯昌县| 大英县| 简阳市| 保德县| 泾源县| 温宿县| 庆元县| 洛扎县| 蓝田县| 闻喜县| 滦平县| 平安县| 姚安县| 依兰县| 蚌埠市| 巨野县| 拜城县| 西青区| 绥棱县| 龙陵县| 资源县| 和田市| 公主岭市| 台安县| 泸州市| 剑川县| 巴马| 安顺市| 黔西县| 壤塘县| 南宫市| 凌云县|