Ok I have a situation where one character must test whether they collide with any other characters or debris, so far I have done this by testing whether or not the characters rectangle intersects another character or debris’ rectangle. As you can imagine this will become very big as more characters are added into a game, so I wonder if there is an algorithm that would handle this more effectively? Any kind of link to a site or book that has other algorithms useful to game development would be nice as well.
Ty for any and all help.