CharacterController BoxCollider collision confusion.

I have a box collider marked as trigger which is normally entered by the player(CharacterController). onTriggerEnter/Exit/Stay work but do not provide collision details regarding the normal hit. onCollisionEnter/Exit/Stay do not work with a CharacterController, and OnControllerColliderHit only works with scripts attached to the CharacterController.

What options are left for gathering collision details to determine the direction of collision in this scenario?

What do developers using Unity normally do in such cases?

1 Answer

1

You could take a look at the Collision action matrix in the reference for Box Collider.

It shows possible combinations of Colliders, Triggers and RigidBodies.