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

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);
主站蜘蛛池模板: 房产| 凤凰县| 铁岭县| 湖南省| 东至县| 闽侯县| 盐池县| 河北省| 沧州市| 关岭| 二连浩特市| 翼城县| 海口市| 昌邑市| 乌什县| 横峰县| 个旧市| 友谊县| 义马市| 大兴区| 商城县| 秦安县| 安溪县| 广东省| 双柏县| 慈溪市| 礼泉县| 聂拉木县| 阜新市| 旌德县| 承德县| 保定市| 鄂伦春自治旗| 京山县| 肥城市| 隆安县| 保靖县| 老河口市| 海门市| 明星| 东至县|