Jump to content

Navigation : Find random position at distance


YouGroove
 Share

Recommended Posts

Hi,

 

For AI i need a function that would return a reachable point in navmesh, at some given minimum distance and at any random angle.

 

Like :

GetRandomPointAtDistance(distance)

 

We could calculate points around the character at some minimum distance and each time call GotoPoint() until it returns true, but perhaps Navigation has better optimized functions ?

Stop toying and make games

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.

 Share

×
×
  • Create New...