Answer:
Personification
Explanation:
Tree branches cannot actually smack people, so the author is giving a human trait to an inanimate object.