From c84fb0b11e537df1efb94ac1eb8db6b6ff1c1d6f Mon Sep 17 00:00:00 2001 From: "i.semenov" Date: Mon, 28 Oct 2024 17:08:28 +0300 Subject: [PATCH] Fixed: decrease offmesh connection trigger radius for crowd --- src/DotRecast.Detour.Crowd/DtCrowd.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Detour.Crowd/DtCrowd.cs b/src/DotRecast.Detour.Crowd/DtCrowd.cs index 58b0b4e..d908d1a 100644 --- a/src/DotRecast.Detour.Crowd/DtCrowd.cs +++ b/src/DotRecast.Detour.Crowd/DtCrowd.cs @@ -993,7 +993,7 @@ namespace DotRecast.Detour.Crowd } // Check - float triggerRadius = ag.option.radius * 2.25f; + float triggerRadius = ag.option.radius * 0.25f;//todo make parameterizable if (ag.OverOffmeshConnection(triggerRadius)) { // Prepare to off-mesh connection.