Say that you have sorting already worked out for a sweep and prune broad phase collision detection. In the case that it is already sorted, would a linked list be better suited or a vector? Is one preferable over the other? faster? more manageable?
And say now say they're not sorted and I'm referring to the entire process of sweep and prune. In this case, knowing that you have to maintain a sorted list, or have to resort a list each update in some way and than do the broad phase collision detection, same question. Is one preferable over the other for some reason, or is faster, or more manageable than the other?
possibly helpful info:
- this is for a 2D game engine (so only concerned about x and y coordinates)
- only working with rectangles (so AABB collisions only)