Finding diagonal objects of an object in 3d space
- by samfisher
Using Unity3d,
I have a array which is having 8 GameObjects in grid and one object (which is already known) is in center like this where K is already known object. All objects are equidistant from their adjacent objects (even with the diagonal objects) which means
(distance between 4 & K) == (distance between K & 3) = (distance between 2…