I want to make a hair with physics in unity2D

Something like a rope hang in on the character’s head. I need to do something similar to rapunzel’s hair.

See this official, free Unity example project