So this may be a dumb question, but does anyone know how to get more than one collider to work on an object?
For instance I have a character controller on an object for a movement script, but the capsule shape doesn’t represent the shape of the object, so I’m using a box collider as well, but the character can still move through walls.
I’m moving my object with CharacterController.Move(), is that a problem?
Any help is appreciated, Thanks!
A character controller can only be a capsule and can’t use anything else. The CharacterController.Move function is intended to be used (or else it probably wouldn’t be included
), so no, that’s not a problem. Going through walls suggests an issue with your colliders for the level, although it’s also the case that the character controller should only be used for actual 1st/3rd person characters (Quake/Unreal/etc.), so if your object is not that, you should probably use something else.
–Eric