- Home /
Capsule Collider inside FPS controller not working
I am using Unity 5, and I inserted a capsule as a child of the FPS controller (I'm trying to build a camera-follow third person controller eventually) but the capsule collider on the capsule doesn't seem to work.
Attached photo.
Answer by Cherno · Oct 01, 2015 at 08:28 PM
You can't use any collider with the Standard Controllers. You have to use the CharacterController component as the collider, and it has to be on the root object.
In order to use custom colliders (be it primitives or MeshColliders), you have to write your own rigidbody-based Controller. Older Unity versions also had a FPS Walker script which was physics-based IIRC, maybe it's somewhere on the wiki.
You can add a primitive/other collider as a child of StandardAsset/CharController (which as you said has it's own collider); I have that setup on $$anonymous$$e.
That won't affect the character itself, though, so it won't make the character stop at a wall or similar.