Submarine V0.2 is almost finished, the Autopilot works. But currently, it won't go around islands and just hit the sea floor. How can I make it go around the islands? The vizzy finds the correct heading by locking its heading on vec( target position x, current position y, target position z ).

Tags
Question

1 Comment

  • Log in to leave a comment
  • Profile image

    So, I've found a way that should theoretically be possible, but it's probably the worst solution: I could loop through a list of coords on the surface and check for each, if it is in the water (and if the water is deep enough). Then, it should be possible to use some pathfinding algorithm to find the fastest way. The problem is, checking the sea depth of that many coords would probably take too much time. Additionally, I only have really basic knowledge about JNO's coords system, so I can't create a uniform "network" of coords. Do you think that could work if I'd be able to solve these two problems?

    Pinned 6 months ago

No Upvotes

Log in in to upvote this post.