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\$
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\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.