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.
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.