I’m looking for a good way to keep track of objects on a 3d grid. For example, I want to query a point at say: (0,0,0) and find out if there are objects on any of its 4 “corner” points on the X/Z grid plane. (These would be (1,0,1) ; (1,0,-1); (-1,0,1); and (-1,0,-1)).
Note these would be custom grid coordinates, not transform.position values per se.
I was thinking a good way to do this might be a multidemensional transform array of some sort, but since array’s can’t take negative values I probably can’t store the relevant grid-position data there.
Any help to get me started is appreciated!