Jump to content

WebWalking walk random direction


TorRS

Recommended Posts

Try to use a WebWalkEvent and call useSimplePath() this will try to take a more direct route to the target. It will use more memory but it might help since it won’t try to follow roads.

Otherwise you could set a condition for the WebWalkEvent to break when it ventures to far off the path that it has calculated by retrieving it with getPositions() than looping through that finding the closest point that is closest to you and closest to the target point and having a threshold of a overshoot before restarting the event.

Edited by BravoTaco
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...