Character Controller Collider Raycast Issue
I've encountered an issue while using Unity's built in character controller. Raycasts don't seem to register unless they reach a certain "depth" into the character controller collider.
On the left you can see the raycasts registering properly right up the very edge of a standard capsule collider.
On the right, you can see that the raycasts are quite far into the character controller collider, and are still not registering.
I can only find one reference to this issue, and it's from 2016 https://answers.unity.com/questions/1217300/raycast-on-character-controller-isinset.html
Anyone know of a solution or workaround?
Here is a link to the test scene if anyone is interested: https://www.dropbox.com/s/qguexv2aulqf8f5/CharacterControllerRaycastIssue.unitypackage?dl=0
I ended up simply adding a Capsule Collider with matching dimensions and isTrigger enabled to the Character Controller gameobject.
Everything seems to be working properly for the time being, I'll update if I run into any issues with this solution.
Your answer
Follow this Question
Related Questions
Animations with Colliders 0 Answers
Mouse click doesnt seem to be hitting the right collider 1 Answer
C# Error while trying to set up shot damage and headshots 0 Answers
Raycast Not Detecting Hit 0 Answers