Fixed: decrease offmesh connection trigger radius for crowd

This commit is contained in:
Семенов Иван 2024-10-28 17:08:28 +03:00
parent 4a1b430ee6
commit c84fb0b11e
1 changed files with 1 additions and 1 deletions

View File

@ -993,7 +993,7 @@ namespace DotRecast.Detour.Crowd
} }
// Check // Check
float triggerRadius = ag.option.radius * 2.25f; float triggerRadius = ag.option.radius * 0.25f;//todo make parameterizable
if (ag.OverOffmeshConnection(triggerRadius)) if (ag.OverOffmeshConnection(triggerRadius))
{ {
// Prepare to off-mesh connection. // Prepare to off-mesh connection.