(BoneDynamics Addon) How to disable collision for certain objects in simulations

I’m making hair a character who’s also wearing a hat, but when I play an animation, the hat begins to glitch out as it collides with the hair model. How can I stop this?

Have you watched the tutorial video on hair and collisions?