Robmaister / SharpNav

Advanced Pathfinding for C#
sharpnav.com
Other
537 stars 129 forks source link

Path Offset / Buffer #24

Closed keslabs closed 9 years ago

keslabs commented 9 years ago

If I wanted to offset the path from obstacles / edges, what would be the easiest way to accomplish it?

Any help with this would be greatly appreciated. Also, it might be helpful to put up a developers forum to encourage end-users to help each other via samples and other potentially helpful resources.

Thanks.

Robmaister commented 9 years ago

This simplest way I can think of to do this is to increase how much the navmesh gets eroded at the CompactHeightfield.Erode() step - if you increase the NavMeshGenerationSettings.AgentWidth property, it will shrink the navmesh inwards from obstacles and achieve the desired effect.

There may be another way by fiddling with the pathfinding settings, but that is much closer to a port of Recast than the generation part of SharpNav is. I will be working on cleaning that up and adding settings like this in the future. I'm not super familiar with that bit of the code base yet.

A forum/mailing list sounds like a pretty good idea. If you have any recommendations for forums that I can create for free that would be awesome. I'm still a (relatively) poor college student, I'd rather not have a recurring cost to keep a forum going for a free project, and also risk having the forum disappear were I to ever stop paying.

Right now I'm leaning towards a Google Group, but I generally like forums better.

Robmaister commented 9 years ago

There's a Google Group up here now: https://groups.google.com/forum/#!forum/sharpnav

Assuming your original question was answered, I'm going to close this.