wanadev / babylon-navigation-mesh

A library to move on navigation mesh with BABYLON.js
MIT License
73 stars 20 forks source link

Fixed problem with low number of polygons in navmesh #8

Closed RelativeNull closed 6 years ago

RelativeNull commented 6 years ago

When calling findPath, wasn't taken into account the fact that the starting and target points could be in the same polygon. This created unrealistic movements. Now the channel isn't created at all if the polygon of the starting and target points is the same thus fixing the issue.

clementlevasseur commented 6 years ago

Nice job ! Thanks ! I will release it on npm this afternoon