List of bounding boxes?
Posted
by
Christian Frantz
on Game Development
See other posts from Game Development
or by Christian Frantz
Published on 2013-07-15T00:32:38Z
Indexed on
2013/11/12
4:20 UTC
Read the original article
Hit count: 370
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?
© Game Development or respective owner