How to make multiple character controllers push each other?

I have a 2 player game and each player has a character controller. But i want the character controllers to push each other depending on who’s pushing and how much pushing power the player has. Please Help!

1 Answer

1

If they have rigidbodies then they should push against each other automatically. The only things that will stop two rigidbodies from interacting is if one is set to kinematic or the layers that they’re on don’t interact.

Check the kinematic checkbox, and that their layers are set to interact in the Physics settings.

In order to have one push more than the other, they’re going to need different masses. The more massive rigidbody will not be affected by the less massive one as easily as the other way around. If you want them to move at the same speed, then the more massive rigidbody will require some additional force applied.