Collisions Using Third Person Character Controller

Hey all.

I’m using the third person character controller script, and I’m very impressed. One thing I don’t understand fully is how to determine what object the character is colliding with. I can see where the character is colliding using the CollisionFlags, but how can I tell what the character is colliding with?

Actually, I think I got it. I was trying to use the OnCollisionStay and OnCollisionEnter functions, adding them to the thirdpersoncontroller script, but I see now that I have to just detect for collisions within the OnControllerColliderHit function that is already set up in the script.