- Home /
The question is answered, right answer was accepted
Change Character Controller Collider - to another Collider? (*CCCC+Quest*)
character controller is a capsule collider ... how can i change that to box or cylinder or rigidbody or MESH Cillider or whatever Collider i want ?
I would like to use the Mesh Collider, so I can use the same body shape as my character has in my character Controller instead of this Capsule Cillider.
how can you fix it in a simple way?
how to replace the Capsule CO to Mech CO from my ExP character model
thanks in advance for your help :)
Answer by Bunny83 · May 14, 2014 at 01:10 PM
You simply can't. The CharacterController doesn't use physics itself. The CharacterController is a CapsuleCollider so other physics objects can collider with the CC. The CharacterController itself has it's own collision detection and can't be changed.
If you want to use other shapes you have to use a Rigidbody with an appropriate collider.
the simpel stuff i want to use is that you can't shoot me between my leggs like you can now whit this Capsule co
If you just want hitboxes, just add them and only raycast against the hitboxes. $$anonymous$$ost games use different colliders for physics / movement as for hitdetection. Just place all your hitbox-colliders on a seperate layer (let's call it "hitboxes") and when you Raycast, use a layermask to only allow hits with the hitboxes layer. IF you use projectiles, make sure you setup the collision-matrix in the physics settings to only allow the wanted collisions.
That's why you should ask specifc and detailed questions and reduce the pointless bolding since that doesn't help at all to understand your problem ;)