Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by rbisso · Oct 05, 2012 at 08:43 PM · ainavmeshagentnavigation

Manual OffMeshLink Max Distance?

Hey, guys...

Is there a maximum distance between two manually-placed OffMeshLinks, beyond which the NavMeshAgent will refuse to traverse the connection between the links?

This is what appears to be happening in my game, and also appears to be the case in a small test scene I created.

Thanks in advance!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rbisso · Oct 05, 2012 at 10:26 PM 0
Share

Looking at it a bit more closely in my very simple sample scene, there appears to be a white line drawn on the nav mesh, across the boundary of which the Off$$anonymous$$eshLinks will not work. This line is about 297m from one of the Off$$anonymous$$eshLinks. That distance does not seem to be reliable, though.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by DanSuper · Jan 18, 2013 at 08:11 PM

I ran a little experiment and found results similar to your comment. The white lines appear to designate regions of Navmesh. A manual OffMeshLink will connect if both the start and end point are in the same region or an adjacent region, and will not connect if there is one or more regions between the start and end point.

The spacing of the regions appears to be related to the Radius you set when baking your NavMesh. The larger the Radius, the larger the regions appear to be. With a radius setting of 0.5 I was able to get an OffMeshlink to generate at exact opposite ends of the white region about 320 meters apart. With a radius setting of 1.0 I was able to get an OffMeshLink to generate about 640 meters apart because the white lines representing navigation regions were spaced farther apart.

I was also able to daisy chain multiple OffMeshLinks so that I was able to go from one end of a region, to the opposite end of a region 4 blocks over by only navigating 2 offmeshlinks (see picture) ![alt text][1] [1]: /storage/temp/6842-multipleoffmeshlinksspannavregions.png

It seems like this could work fairly well as a work around if you need to have an agent that needs to be able to navigate between two isolated positions that that are very far apart yet maintain a small radius on your navmesh. The use case that comes to mind in this situation is a teleporter.


multipleoffmeshlinksspannavregions.png (40.8 kB)
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rbisso · Jan 18, 2013 at 09:30 PM 0
Share

Dan, thank you so much for your feedback! That is super useful, and we'll definitely look at it.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Update SetDestination only every 0.2s with coroutines ? 5 Answers

Way to find closest point in a specific area on navmesh. 0 Answers

Can't make the manual offmeshlink work 1 Answer

2 NavMeshAgent 0 Answers

CS0246: The type or name space name ''NavMeshSurface'' plz some help 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges