Details about setting areas for different area cost. #478
Closed
johnwon2007
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First of all thank you for providing this amazing library!
while i was using this library i kind of got stuck on setting areas and its cost.
I did see a post about adding velocity weights here #431
but I still have no idea how this works so I was wondering if I could get some help.
From what I understand, I can either:
For the first approach, I’m not sure how to mark areas during navMesh generation.
For the second approach, after creating a navMesh, I think I can use setPolyArea to assign areas to polygons, then use a QueryFilter with setAreaCost for each area, and then just use findPath. Is that correct?
My main questions are:
How do I set an area to be a square or other shape, rather than just a polygon?
How can I mark areas during navMesh generation (approach 1)?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions