How to have a hat interact with a hair groom?

Hello,

I would either:

  1. Change the size of the hat
  2. Add a masking function to the hat’s material that will hide all hair in contact with it
    or
  3. Create multiple versions of the same hairstyle, where you shave off any parts that are occluded beyond the hat line so they don’t stick out.

There’s a reason characters are usually buzzcut/bald when wearing hats in video games.