- Learning Game AI Programming with Lua
- David Young
- 262字
- 2021-08-05 17:02:16
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.
- 數據要素安全流通
- SQL入門經典(第5版)
- iOS and OS X Network Programming Cookbook
- 數據庫系統原理及應用教程(第4版)
- Neural Network Programming with TensorFlow
- Oracle高性能自動化運維
- 數據挖掘原理與SPSS Clementine應用寶典
- 新基建:數據中心創新之路
- SQL Server 2012數據庫管理教程
- 探索新型智庫發展之路:藍迪國際智庫報告·2015(上冊)
- Hadoop 3實戰指南
- 數據挖掘競賽實戰:方法與案例
- PostgreSQL高可用實戰
- 基于數據發布的隱私保護模型研究
- 數據庫原理及應用實驗:基于GaussDB的實現方法