x


Does NavMeshAgent disable a gameObject's collider?

I have a series of GameObjects controlled by NavMeshAgents in my scene. They all have BoxColliders attached. They're supposed to be destroyed when they enter certain triggers in the scene, but none of the OnTrigger* functions are ever called. They're called for other colliders, but none that have NavMeshAgents.

Is this a known issue? By design?

more ▼

asked May 04 '12 at 01:47 AM

greay gravatar image

greay
67 1 4 7

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

1 answer: sort voted first

turns out they didn't have Rigidbodies attached. Even though I'm sure I double-checked that. But yeah, the OnTrigger* functions need a rigidbody.

more ▼

answered May 04 '12 at 04:02 PM

greay gravatar image

greay
67 1 4 7

(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:

x2485
x136
x74

asked: May 04 '12 at 01:47 AM

Seen: 1005 times

Last Updated: May 04 '12 at 04:02 PM