Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I make PathfindingService work in 3D?

Asked by
P100D 590 Moderation Voter
8 years ago

So basically I want to make a swimmer move around underwater obstacles. However, PathfindingService only seems to work when there's a solid surface to move on. Is there a way to either have PathfindingService ignore water and move in 3D, or take swimming in water into account?

1 answer

Log in to vote
0
Answered by 8 years ago

You can't

It's just not implemented in that way. What you can do is you can implement your own by having your own nodes to avoid or follow. This requires a bit of work on your end, but it will actually ultimately be a bit faster and a ton more flexible.

0
OK, thanks! I guess it's time to look into using Dijkstra's algorithm. P100D 590 — 8y
Ad

Answer this question