# Detect a collision between a CharacterController and a 3D Object?

I am making an XR game, and I am stuck with a part. Does anyone know a function that would detect this? OnCollisionEnter and OnTriggerEnter don't appear to work with a CharacterController. Can anyone help?

OnCollisionEnter and OnTriggerEnter require both objects to have colliders and at least one of the objects to have a Rigidbody. You might also try OnControllerColliderHit, which is documented here.
• You can look at OnControllerColliderHit(): docs.unity3d.com/ScriptReference/… You haven't provided any information about what you've already tried or how your objects are set up, so it's difficult to give more specific answers. – Kevin Jul 13 '20 at 18:46