forked from mirror/DotRecast
Fixed: decrease offmesh connection trigger radius for crowd
This commit is contained in:
parent
4a1b430ee6
commit
c84fb0b11e
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue