You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be possible to just compare the interval size against the unit radius, and reject intervals that are too small, but that might end up being too pessimistic (or I might be misremembering how polyanya works)?
The text was updated successfully, but these errors were encountered:
That would work for polynya if we're sure that every vertex in the navmesh is on an obstacle. This is not a guarantee coming, from any navmesh made with any polygon, but I think it's true coming from a Constrained Delaunay Triangulation (if the constraints are the obstacles).
Also, this is a way to adapt the navmesh "online" to unit size. I think the other way is to "shrink" the navmesh depending on the unit size. It's a tradeoff between memory usage and pathfinding speed.
It's not uncommon to have units of different sizes, and you might have areas of the navmesh that are accessible to smaller units but not larger units.
Ideally there'd be some way to pass in the unit radius when searching for a path, and it'd return a valid path for a unit of that size.
In the below image, a small unit would take the leftmost passage, a medium unit could go up, and a large unit has to go right and go all the way around.
![agent_size_12-1](https://private-user-images.githubusercontent.com/177631/259611717-9bbf01ff-f046-435b-bb58-3fcca0890595.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMjU4NTQsIm5iZiI6MTcyNjEyNTU1NCwicGF0aCI6Ii8xNzc2MzEvMjU5NjExNzE3LTliYmYwMWZmLWYwNDYtNDM1Yi1iYjU4LTNmY2NhMDg5MDU5NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQwNzE5MTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNDVkYWZmMWNmNjk1NTZmYjZhZWU3MDQxMGY5Yjk1OTBlNGJiYmNjYjI2NWI1NmU4NjJlNTg2NGZlNDFkYWRmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.rlIKrdSYTHLcoFOBhPxLL8dj330QoR1w5OO6rLaOAXU)
(image from https://www.jdxdev.com/blog/2021/07/06/rts-pathfinding-2-dynamic-navmesh-with-constrained-delaunay-triangles/)
It might be possible to just compare the interval size against the unit radius, and reject intervals that are too small, but that might end up being too pessimistic (or I might be misremembering how polyanya works)?
The text was updated successfully, but these errors were encountered: