Fixed issue with incorrect navmesh query results.
It was a problem with navmesh bounding box calculation.
to merge one AABB to another, use bb.merge_with(), not bb.merge(),
as thi later will return new AABB, while former will increase size of existing AABB.
So now I'm going for navmesh visualization and adding agent signal sending (hope it will work with Spatial+script agent)
Finally I fixed all navmesh generation errors and can go continue with the rest of features. (Navmesh is drawn in green lines). Now I need to add area tagging and connections, i.e. I move to tile cache now. After that I need to restructure code a bit so that navmesh build code goes to navmesh class, so to be able to run independently of node tree. The code is in navigation branch, have fun.
Comments
Post a Comment