Jump to content
Search Community

yan_rez

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by yan_rez

  1. How can I have an ThreeJS object rotate on an axis that is at angle.

     

    Like from this codepen I made, the left square rotates on its center and moved up when you click on the "rotate up" button.

     

    I want the left cure rotate along the red axis in the image attached and move along on that axis when click on the "Rotate 45 degree" button.  I can make up move along the axis, but the rotation is wrong. How can I make the cute rotate along the red axis?

     

     

    Screen Shot 2021-05-06 at 4.29.42 PM.png

    See the Pen MWpYggY by eforblue (@eforblue) on CodePen

×
×
  • Create New...