OnCollision messages don't work with Character Controller?

I feel like I ought to know this by now, but I never had a need to deal with it, and I'm not finding anything about it while searching. I just want to use OnCollisionEnter, and have it react to a CharacterController. Is that not possible? All I've got moving in my scene is a Character Controller, so it's a waste to have to check junk in OnControllerColliderHit.

more ▼

asked Jul 15, 2010 at 06:38 PM

avatar image

19.1k 212 203 317

(comments are locked)
10|3000 characters needed characters left

1 answer: sort newest

It's not possible without adding a rigidbody onto your character controller, no. And then that's probably an even bigger waste

more ▼

answered Jul 15, 2010 at 06:51 PM

avatar image

Mike 3
34.6k 28 156 319

Don't like it. Thanks.

Jul 15, 2010 at 10:42 PM Jessy

why is adding a rigidbody a waste? How else can one detect collisions in the characters "view"? I added a box collider and a rigidbody to make it possible for the character to interact with the surounding objects that are near.

Oct 17, 2011 at 01:02 PM swisscoder

You actually don't need a rigidbody when you are using a CharacterController. Check this post. It's said in which conditions OnCollisionX, OnTriggerX and OnControllerColliderHit are called.

4 days ago dbrizov
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jul 15, 2010 at 06:38 PM

Seen: 4320 times

Last Updated: 4 days ago