Hey guys,
Random question, I am storing my voxel world in chunks (3d byte arrays). I am creating some helper functions and there is one particular function that I can't seem to figure out. How to draw a line from a Vector3 Origin Point to a Vector3 Destination Point. The points would be cells in my array based on World Coordinates.
For example I want to draw a line from 0,0,0 to 0,10,5
Based on that it would turn all the cells in the array between 0,0,0 and 0,10,5 that form a line from 0 to 1.
It's a bit hard to explain but I hope it makes sense.
Cheers,
NGD