1
\$\begingroup\$

I have a problem here.

I animated my main character and is working. It walks run and jump however it goes across walls and ground.

As in every single video I watch in unity tutorials I put a navigation static in every single wall and game object. However the main character still go across them as thin air

The main character has a rigid body and collider as does the the wall and other game objects

I really don't understand I don't really understand what i did wrong or what I miss? Script ? other things I am not aware?The Nav Mesh Agent?This is the inspect of the main character![This is the inspect of the wall(s) ]1

I really hope someone can help me

Thanks in advance

CL

\$\endgroup\$

2 Answers 2

3
\$\begingroup\$

Read up on the IsTrigger variable. Specifically:

Is Trigger: If enabled, this Collider is used for triggering events, and is ignored by the physics engine.

\$\endgroup\$
0
\$\begingroup\$

As Byte56 already told you have IsTrigger checkbox turned in your wall. You need to turn it off, so that it can collide with any other object which has collider in it. If you do not want your wall to collide with some other object, you can put both wall and other object in separate layer and then can turn off collision between those layers by going to Edit->Project Settings ->Physics. However this will turn off any OnTriggerEnter (or any trigger related call) between these layers too.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .