x


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

Jessy gravatar image

Jessy
18.3k 208 174 283

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

1 answer: sort voted first

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

Mike 3 gravatar image

Mike 3
32.9k 19 80 290

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
(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

By RSS:

Answers

Answers and Comments

Topics:

x4170
x2926
x1159
x346

asked: Jul 15, 2010 at 06:38 PM

Seen: 4197 times

Last Updated: Oct 17, 2011 at 01:02 PM