- Home /
Collision between CharacterControllers
I have two characters both have CharacterController and Rigidbody(isKinematic uncheck).
When moving around the collision work fine, but OnCollisionEnter() Doesn't called when collision happened. Howerver, OncollisionEnter() do called when the character is hit by a Bullet, which has BoxCollider and Rigidbody.
Is this situation normal or there may be a bug in my script?
Answer by Berenger · Feb 04, 2012 at 12:32 AM
You might want to take a look at that : http://unity3d.com/support/documentation/ScriptReference/CharacterController.OnControllerColliderHit.html
I add the example script to my Player's script, it work property when pushing an cube with BoxCollider and Rigidbody. But once I replace the BoxCollider to CharacterController, the Player can't push the cube.