mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
Fix NavigationObstacle not estimating radius
This commit is contained in:
parent
dbd2b16a35
commit
30a24e864f
@ -213,12 +213,11 @@ real_t NavigationObstacle::estimate_agent_radius() const {
|
||||
}
|
||||
Vector3 s = parent_spatial->get_global_transform().basis.get_scale();
|
||||
radius *= MAX(s.x, MAX(s.y, s.z));
|
||||
}
|
||||
|
||||
if (radius > 0.0) {
|
||||
return radius;
|
||||
if (radius > 0.0) {
|
||||
return radius;
|
||||
}
|
||||
}
|
||||
|
||||
return 1.0; // Never a 0 radius
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user