three-pathfinding icon indicating copy to clipboard operation
three-pathfinding copied to clipboard

Player sometimes gets stuck in the demo when changing path

Open tkovis opened this issue 3 years ago • 1 comments

I was trying out if I could get the player stuck and sure enough I could fairly reliable do it. Not sure if this is an issue with the library or mesh.

https://user-images.githubusercontent.com/23610510/120528340-0217b500-c3e4-11eb-8925-adef7fb7525e.mov

First time trying to do pathfinding in three and not sure what could cause this / how to work around.

tkovis avatar Jun 02 '21 17:06 tkovis

I got it working by not checking polygon for closest node when finding path.

https://github.com/tkovis/three-pathfinding/commit/8b4f1c9ddd012627eb7ca992a26b0c04d0650879

Seems like it could be a breaking change so I'll not create a PR

tkovis avatar Jun 03 '21 06:06 tkovis