Implementing yaw, pitch, and roll for a mesh

I solved all the problems I had.

  • I found out that mesh.rotation using “ZYX” gives, apparently, Yaw Pitch Roll.
  • The basic rotateX/Y/Z work fine
  • lookAt fails, it points the mesh z axis at the lookAt object. I need to point the x axis. I just wrote my own trig fcns for that. Maybe there’s a solution? A stackoverflow mentioned this is a problem
  • I used Rollup to get just the Object3D.js and dependencies in a file. 40K minified. Kinda useful
  • This shows the orientation work: http://localhost/src/agentscript/tests/threeYPR.html