Put a helmet on a hairy head?

Putting a helmet on your head, your hair sticks out through it.Even if I put my hair under the helmet, the hair will still pass through the helmet when I move or tilt my head.I think we need to use a helmet material that won’t let hair through, but how do we create it?

That’s a super hard and complicated task. Usually games just replace the head with a version that has the helmet but doesn’t have any hair. Otherwise you’re talking about simulating the hair properly so that it collides with the helmet. That’s a huge task

If there are 1 or 2 helmets in the game, then you can create hair for each one, but if there are hundreds of them, then create separate hair for each one, which, for example, I have 15mbt. It’s too expensive.I would like to figure out how to separate the protruding hair with a helmet, and then just make them invisible.