x


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?

more ▼

asked May 24 '12 at 07:28 AM

Tessa gravatar image

Tessa
37 3 3 5

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

May 24 '12 at 01:55 PM Tessa

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

May 25 '12 at 07:55 AM Tessa

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

May 30 '12 at 09:14 AM Tessa
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered Apr 16 at 07:09 PM

m-i-e-c-z gravatar image

m-i-e-c-z
16

(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Jun 07 '12 at 07:23 AM

Tessa gravatar image

Tessa
37 3 3 5

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 NavMeshAgents.

Jun 07 '12 at 08:29 AM Tessa

@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.

Dec 01 '12 at 11:33 PM MoHoe
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x143
x78
x51

asked: May 24 '12 at 07:28 AM

Seen: 1065 times

Last Updated: Apr 16 at 07:09 PM