turtle
turtle copied to clipboard
Support perspective mode
LOGO has a "perspective mode" that you can enter by typing PERSPECTIVE
. In that mode, you can roll/pitch the turtle via RIGHTROLL
/LEFTROLL
/UPPITCH
/DOWNPITCH
(RIGHT
and LEFT
control yaw). It's pretty neat and would be nice to have this here.
This is a great feature request! I have had this mind for a while and it will definitely be something to work on after the 1.0.0 release.
Some initial thoughts: Basically, implementing this will require changing the turtle's representation to store an orientation matrix and a three dimensional position instead of just a rotation and 2D coordinate. All of the calculations will need to be updated to now be done in 3D space. To render these new coordinates, we'll need to project everything back into 2D space. I have some thoughts about optimizations and ways to reduce repeated work which I will elaborate on later when we are actually implementing this.
Anyone else who has any ideas is welcome to participate as well! :smile: