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 Nanako · Nov 07, 2014 at 04:39 PM · navmeshtutorialagentstealth

Why does my navmesh not stop at this wall? (stealth tutorial)

so i'm doing the stealth tutorial, onto chapter 4 now, i've just baked my very first navmesh.

The tutorial specifically mentions to set the bake height of the navmesh to at least 1, and it specifically mentions the reason for this is to ensure that the navmesh doesn't try to go under the Battle Bus in the centre of the map.

Well here it is: http://puu.sh/cGVOC/11870d9db2.jpg

my navmesh going straight under the battlebus. I did exactly as suggested. Moreover, i've tried increasing the height to 2 and that didn't solve anything

The battle bus itself does not have any colliders, and i suspected that as the issue, however a little quick testing indicates otherwise. As can be seen in the image, there's an invisible wall which runs around it, which is part of env_stealth_static.

In fact, there are hundreds of walls just like it all over the scene, and the navmesh is not respecting any of them, as shown here: http://puu.sh/cGW9y/16c4ea7b5a.jpg

It stops at objects, but not at the invisible boundary walls which are the actual colliders, and which determine where actors can go. If i try to run AIs through this it's just going to be a horrible mess, surely.

What's going on here? how can i fix it?

Comment
Add comment · Show 4
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 Nanako · Nov 07, 2014 at 05:42 PM 0
Share

$$anonymous$$y battlebus wasn't marked as static, i did that and it fixed that particular problem. but the issue of navmesh not respecting these boundary walls still stands

avatar image spiceboy9994 · Nov 07, 2014 at 06:35 PM 0
Share

When I used nav mesh before, I had this type of issues when the colliders on the ground where not actually touching the wall colliders, not sure if this is your case.

avatar image Nanako · Nov 07, 2014 at 07:47 PM 0
Share

there ARE no wall colliders. This green invisible wall stuff runs over every surface in the level.

The individual walls, barrels, etc, have no collision shapes of their own. Everything is governed by this one massive mesh collider attached to their parent object.

the navmesh seems to be respecting renderers, and not colliders.

avatar image billyjoetyler · Nov 07, 2014 at 09:53 PM 0
Share

How about marking the barrels as obstacles, this might fix your problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by FairGamesProductions · Nov 08, 2014 at 01:18 AM

You are completely right. The NavMesh follows the mesh not the colliders. But this is your SALVATION!

If you create a new mesh from the meshcollider you are using, and THEN bake the NavMesh it should bake correctly! Then you can just disable the renderer and leave the Mesh Collider.

That should solve your problem. Just make sure that you mark the mesh as static.

Comment
Add comment · Show 2 · 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 Nanako · Nov 08, 2014 at 01:35 PM 0
Share

this worked, yay

avatar image FairGamesProductions · Nov 08, 2014 at 01:37 PM 0
Share

Glad to hear :)

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

29 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Navmesh carving and agent avoidence. 0 Answers

Randomize NavMeshAgents path finding with same destination 1 Answer

Unity Crashes when decompressing Stealth assets 3 Answers

Question on Unity Project: Stealth - Chapter 1 - Video 2 at the beginning 2 Answers

enable/disable navmesh agent and obstacle same object (player) 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