oops i did it again - its the same as my particle engine (https://scratch.mit.edu/projects/343626456/) just in 3d
i used this wikipedia for the math https://en.wikipedia.org/wiki/3D_projection