Skip to content

Support for variable agent sizes #39

@Elabajaba

Description

@Elabajaba

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
(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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions