- Learning Game AI Programming with Lua
- David Young
- 137字
- 2021-08-05 17:02:15
Avoidance
Avoidance steering behavior involves avoiding collisions between moving agents, objects, and other moving agents. The collision avoidance calculated from ForceToAvoidAgents
creates a steering force in the tangent direction of a potential agent as two agents move closer to one another. Predictive movements are used to determine whether two agents will collide within a given amount of time.
Obstacle avoidance, on the other hand, approximates sandbox objects using spheres and uses the agent's predictive movement to create a steering force tangent for the potential collision.
Collision avoidance
To calculate the force to avoid other agents, based on the minimum time, to collide with other agents, we can use the ForceToAvoidAgents
function.
local avoidAgentForce = agent:ForceToAvoidAgents(minTimeToCollision);
Obstacle avoidance
A similar force to avoid other dynamic moving obstacles can be calculated using the ForceToAvoidObjects
function.
local avoidObjectForce = agent:ForceToAvoidObjects(minTimeToCollision);
- 數據要素安全流通
- 數據產品經理高效學習手冊:產品設計、技術常識與機器學習
- 有趣的二進制:軟件安全與逆向分析
- 編寫有效用例
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- 大數據技術原理與應用:概念、存儲、處理、分析與應用
- MySQL數據庫技術與應用
- Oracle高性能SQL引擎剖析:SQL優化與調優機制詳解
- 大數據與機器學習:實踐方法與行業案例
- Mastering ROS for Robotics Programming(Second Edition)
- The Natural Language Processing Workshop
- 商業智能工具應用與數據可視化
- 利用Python進行數據分析(原書第2版)
- Deep Learning with R for Beginners
- 云工作時代:科技進化必將帶來的新工作方式