Hi everyone! I would love to consult your advice.
Let us consider these objects as an example:
Hero(will collide to all category but not to it self)
Moving Enemies(will collide to the Hero only)
Harmful/spiky objects(will collide to the Hero only)
Gifts - like bonus or coins(will collide to the Hero only)
Is it better to have 1 local collision function for each object category? Or, is it better if each category has its own local collision function? Or, what are your suggestions? Thank you.