Click on the canvas to add control points. Press space to finish the curve. Then, you can click and drag the the control points to edit the curve. The farther a point is from the center of the screen, the higher its z coordinate will be. If you click on the blank canvass it will start a new curve. Use W A S D Q and E to rotate the curve about the origin. Use the up and down arrows to zoom. If you like this project, go here and suggest it to be featured: https://scratch.mit.edu/discuss/topic/2733/
Notes: This is essentially a 3d wireframe that applies some fancy rendering. The control points for the bezier curve are all in 3d. However, the bezier curve itself is 2d, its being drawn using the x and y screen coordinates as its control points. The control points have perspective, and because the curve uses the points after perspective has been applied, so does the curve. Credits: I used this site, http://www.cs.mtu.edu/~shene/COURSES/cs3621/NOTES/spline/Bezier/bezier-construct.html, for the equation of the curve. I used Sheep_Tester's combination custom block, which can be found here. https://scratch.mit.edu/projects/81627406/#player I used ianrocks tutorial for drawing lines off the screen. Check that out here: https://scratch.mit.edu/projects/63984550/ All other scripts are my own. If you want to look just at the wireframe script, I have it in a project here: https://scratch.mit.edu/projects/91078955/