Character controller not colliding with enabled box collider

Hello,

I’ve not been able yet to make this work so here it goes.

Is there any possibility to make a Character Controller Collider well collide with another object that has a Box Collider with IsTrigger enabled?

I’ve already tried creating children empty gameobjects and that doesn’t fit the purpose of my problem right now.

My problem is really happening because I want my other GameObject to collide with a wall. Therefore I’ve enabled its trigger and added a rigidbody. Problem is now my AI won’t make contact to it (just passes right through).

Any advice would be greatly appreciated.

if you add Character controller component on you object, it’s should not detect collison or trigger using OnCollisionEnter or OnTriggerEnter function, use

void OnControllerColliderHit(ControllerColliderHit hit) {
}

method instead.

The easiest way is to have 2 copies of the wall, first one is solid, the 2nd one is the trigger with the render turned off on it.
So, duplicate your wall with its trigger, for example, call one “Wall” the other “Trigger” and put them in the same space.
Ensure that “Trigger” has “istrigger” turned on and it’s “mesh render” turned off.
“Wall” has “istrigger” turned off and “mesh render” turned on (and a collider)

You then increase the size of “Trigger” a tiny bit to make sure the gameObject can make contact with it whilst it hits the rendered, psychical wall.
Also you can drag “Trigger” onto “Wall” to make it a child and keep it organised.

Hopefully that makes sense!