turtle icon indicating copy to clipboard operation
turtle copied to clipboard

Support perspective mode

Open Manishearth opened this issue 6 years ago • 1 comments

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.

Manishearth avatar Jan 09 '18 07:01 Manishearth

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:

sunjay avatar Jan 10 '18 04:01 sunjay