- Home /
CharacterController bugged? Linecast not hitting top/bottom
A CharacterController can't seem to be hit at the top/bottom of the capsule, but a regular CapsuleCollider works perfectly.
The linecast is coming from the black capsule. Green means it's hitting any collider. You can see it only registers a hit when the target is moved down a little bit.
Is this normal? The solution is to add a CapsuleCollider on the same GO as the CC, match it to the radius/height/center of the CC, but this is stupid.
4.1.5f1
Raycasts need colliders. I'm surprised (and confused) that you get any hit at all without a collider.
A CharacterController is not a collider, and it does not act as a collider. That is why you need to use OnControllerColliderHit() in order to process any "collisions"...because they are not real collisions between two colliders. While we cannot edit the script, it likely does all of its hit detection through raycasting.
Your answer
Follow this Question
Related Questions
Inconsistent results when doing line/sphere casts? 0 Answers
Character controller with Rigidbody to apply force 0 Answers
Collision Detection 0 Answers
Raycast, Linecast, sphere collider or capsule collider? 0 Answers
Character falls thru to his waist 11 Answers