Sorry if this has been discussed before, but I can't seem to find any useful information about this. I'm extremely new to processing and I'm having issues with this asignment for a course. I don't want you to solve my homework, but I'm really stuck.
I'm using a trae.physics library, but that's not really the issue. We're required to use a fairly similar behaviour of the nodes, but instead of a 2d grid/array, we need to implement a 3d array. I can't seem to find a way to populate an array on the z direction.
If I add a third line on the draw () function to populate z, then it all goes downhill (provided that I declare the corresponding variables). And this is obviously not even going to work for a sphere, but a cube would be a start. I can't even imagine how to populate in degrees or using circular functions.
Any hint or reference would be extremely appreciated. Here is the code: Thanks in advance.