Characters collision

I am having some collision problems between my player character and the enemy non-player characters in my game. For perspective, the game is a first person shooter. I have a player character that uses the first person controller script, with a character controller and a rigidbody. The enemy has a capsule collider and a rigidbody, neither player or enemy rigidbody’s can be set to isKinematic.

Currently, when you run up to an enemy and collide with them, if you keep holding down the move forward button, you push the enemies around the scene. I can’t have this. The enemies are attacking you while this is happening and it does not look realistic. They are also always moving towards you following you as you move around. I have tried applying force to the player character to get you away from the enemy, but this does not seem to be working at all. Any ideas?

You can increase the mass of the enemies to a really high amount. That should make it impossible for the player to push them. Or at least they would push them so slightly as to be unnoticeable. Just increase the force used to move the enemies around by a similiar factor if your using physics to move them. So 100x the current enemy mass would mean 100x the force in AddForce to get them to move the same.

This worked nicely man thanks