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 benjaml · Feb 11, 2015 at 01:18 PM · navmeshmultipledifferent

Use multiple NavMesh ?

Hi, I'm currently on a projet where the main character is a gost, so I want to make a navMesh with some wall not in it, so I can walk throught them, but I want that my IA have another navMesh with all walls in it. Is it possible to use different navmesh in the same time? is their another way to do this ?

thanks

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by Baste · Feb 11, 2015 at 02:06 PM

When you assign objects as navmesh static, you can select what layer they're on. Navmesh agents have a field named "Navmesh walkable", where you can set what layers that agent can walk on.

So, to solve your problem, you do this:

1: Turn off navmesh static on the walls you're going to be able to walk through. 2: Create quads or planes along the bottom of those walls. Make those navmesh static, and set them on a layer you call "wall" or something like that 3: Go to your player character's Navmesh Agent, and set it to be able to walk on the wall layer 4: Go to your AI's Navmesh Agent, and set it to not be able to walk on the wall layer. 5: Bake the navmesh

Now, your main character should be able to walk through walls, while the AI would be unable to do the same.

Comment
Add comment · Show 3 · 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 benjaml · Feb 12, 2015 at 09:46 AM 0
Share

Thanks a lot

avatar image benjaml · Feb 13, 2015 at 10:09 AM 0
Share

Can I do this with a Nav$$anonymous$$eshObstacle ?

avatar image Baste · Feb 13, 2015 at 04:04 PM 1
Share

Obstacles are round, so I doubt it.

Why on earth there's only round obstacles is something you'll have to ask the Unity $$anonymous$$m about.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

(2D) How to shoot multiple bullets in different directions 1 Answer

How do I get multiple Random.ranges from one script 1 Answer

Can I have 2 navmeshes but only have 1 effected by a nav mesh obstacle? 0 Answers

navmesh multiple targets 0 Answers

How to edit multiple EdgeCollider2D 3 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