You should avoid interaction with such a person. If you have the option to choose other individuals for a group project, take that option without any hesitation. When walking in the office, if you are going to face the rude co-worker, walk straight and ignore him/her, portraying that you did not have the chance to look at him/her.
You can also consider the option of talking to your rude co-worker about the issue. There is no harm in taking a chance, if you explain to him your problem that his/her attitude makes you uncomfortable and you find it hard to work, he/she might change his/her attitude. Remember, your focus should not be to insult him/her or throw the points at him/her but to let him know, if he/she improves, it will strengthen the relationship of both of you.
Workplace has no room for over-emotions, therefore, be nice while telling him/her about his/her rudeness and do not overreact at his/her behaviour.
You should be as nice to your rude co-worker as possible as there is always a chance that such people are inclined to act positive due to good behaviour.
If feel exhausted, you can also take holidays from the office. Go on a vacation so you can fresh up with a more positive gesture.