- Home /
How to make Character Controller triggered collider?
I know there are other similar posts but I didn't saw the explicit answer.
I use Character Controller to move object. The problem is that this prevents objects to move through each other because Character Controller
is not triggered collider.
How I can to make it to be triggered so objects could move through each other?
OR
Maybe there is something that can replace SimpleMove
method of Character Controller?
Answer by OpenCoffee · Apr 25, 2013 at 01:48 PM
So, basically you would like the character to be able to move throught different objects. Well, that has nothing with the trigger to do; but yes, a collider checked as a trigger will not solve any physics interpenetration (i.e. collide).
What you should do is to play around with the layers. Here is what I should do:
Make the player belong to layer Player
Make all objects that is not supposed to go through each other belong to layer IgnorePlayer
Make the ground layer Default
After that, go to Edit->ProjectSettings->Physics and change how the different layers should react to each other.
Please let me know if you need further details.
@OpenCoffee, I have multiple tanks and I want them to move through each other and not other objects.
Just say that Layer Tanks should not collide with Layer Tanks. Problem solved =)
Your answer
![](https://koobas.hobune.stream/wayback/20220613100955im_/https://answers.unity.com/themes/thub/images/avi.jpg)