i found a cool wikipedia about 3dimensional projection and i found it really cool so i decided to implement it within scratch! WARNING if your camera is to close to the cube, turning it around will look buggy lol ill maybe do rotation in all the directions at the same time possible, but thats kinda hard, ill see about it!
for anyone who wants to understand this, all the funky matrix stuff is simply for rotation, the "project point" function is the main rendering thing. this function takes as an input the ID of one of the points in the structure that is rendered. the x y and z (in this project, z is the height) coordinates of this point are then beeing taken and thrown into some cool calculation to find the x and y coordinates on the scratch screen from where to render it