List of bounding boxes?
- by Christian Frantz
When I create a bounding box for each object in my chunk, would it be better to store them in a list?
List<BoundingBox> cubeBoundingBox
Or can I just use a single variable?
BoundingBox cubeBoundingBox
The bounding boxes will be used for all types of things so they will be moving around.
In any case, I'd be adding it to a method that gets called 2500+ times for each chunk, so either I have a giant list of them or 2500+ individual boxes. Is there any advantage to using one or the other?