3D Location Handling

Posted by tgrosinger on Game Development See other posts from Game Development or by tgrosinger
Published on 2011-12-01T00:11:35Z Indexed on 2011/12/01 2:23 UTC
Read the original article Hit count: 173

Filed under:
|
|

I am thinking about making a simulator type game that will involve having lots of small objects in a 3D space. What is the typical solution for handling these objects? The first thing that comes to mind is a 3D Array, but I can't help but think there is a more efficient solution. Another idea that comes to mind is objects having possession of smaller items. For example a House possesses a Table which possesses a Cup and Bowl.

The final way I can think of handling this is just having an array of "objects" that each have an x, y, z value. While this would make storing them easy I do not understand how you would detect collisions without just looking at every possible object and checking to see if it is in the way.

Are there other ways of holding onto these objects that is more efficient?

© Game Development or respective owner

Related posts about 3d

Related posts about architecture