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 Tessa · May 24, 2012 at 07:28 AM · navmeshnavmeshagentradius

Unity NavMesh but not NavMeshAgent? (to solve different size agents)

Hi,

What I would like to do is use the Unity NavMesh feature to build a navmesh. I then want agents walking around with a certain clearance (say x). This can be done by setting the radius to x.

However, I ALSO want agents walking around with a smaller clearance. (say .5x). I don't think there is any way that the build in Unity NavMesh(Agent) supports this... I could trick it by setting the radius of the larger-clearance-agent to x, but then the other agents use that distance for collisions too, which I don't want.

So now I'm wondering if there is any way that I could use the NavMesh feature from unity but write my own NavMeshAgent class, to somehow solve this problem. I don't really know how to actually access the navmesh though... Anyone have any ideas on this?

Comment
Add comment · Show 3
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 Tessa · May 24, 2012 at 01:55 PM 0
Share

So no one has any thoughts on this? Not even "It can't be done." ?

avatar image Tessa · May 25, 2012 at 07:55 AM 0
Share

That's too bad really. (Yes, this is a shameless bump.)

avatar image Tessa · May 30, 2012 at 09:14 AM 0
Share

I'm gonna give this one more bump and then I'll give up :P

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by m-i-e-c-z · Apr 16, 2013 at 07:09 PM

Hi,

I've found a workaround solution for this problem (I'm also working on a game with both small and large agents). Here is the forum thread in which I've posted the solution:

http://forum.unity3d.com/threads/178628-Problem-with-Unity-NavMesh-and-multiple-agent-sizes-(with-a-workaround-solution)?p=1221631#post1221631

Hope it helps a bit,

miecz

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

Answer by Tessa · Jun 07, 2012 at 07:23 AM

Well according to Unity this is the answer:

If you want to use NavMesh layers, go to Edit => Project Settings => NavMeshLayers instead of the normal layers and use NavMesh.GetNavMeshLayerFromName instead of LayerMask.NameToLayer

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 Tessa · Jun 07, 2012 at 08:29 AM 0
Share

After playing around with it: Screw Unity, this doesn't solve any of my problems. Yes, you can make different 'layers'. BUT these layers all have the same clearance. And I still can't just USE the navmesh in anyway without using the Nav$$anonymous$$eshAgents.

avatar image user1j3di3j2sa3 · Dec 01, 2012 at 11:33 PM 0
Share

@Unity - why haven't you made proper video tutorials? why are you making this so stressful for your users + CLIENTS?

Are we the enemy or something? I don't get it.

If you don't want to employ people to do this then why not ask one of your forum moderators to spend an hour or two.

Youtube is free by the way UNITY... funny that "unity" where is the unity?

Look at how many people are stuck having a horrible time trying to get things working. And you just need to spend a few hours, in tern that would save us days. You release a tool or feature then don't bother to show us how we can use it properly for different situations.

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

6 People are following this question.

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

Related Questions

CalculatePath often returns wrong results 0 Answers

Player's last location as a Transform 1 Answer

Unity pathfinding - Comparing 2 paths? 2 Answers

How to make AICharacterController able to walk on walls and ceilings? 0 Answers

Navigation Mesh + Doors 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