English subtitles

← Where to Rotate - Interactive 3D Graphics

Get Embed Code
3 Languages

Showing Revision 2 created 05/24/2016 by Udacity Robot.

  1. The answer is to translate, rotate, and then use the inverse translation. The
  2. translation moves the model to the origin, where it's now centered. The r matrix
  3. rotates the model on its base. Finally, the inverse of the translation moves it
  4. back to where it was. The key idea here is that the object is first being moved
  5. to the origin. Once that's done, we can rotate around its axis with the r
  6. matrix. At this point, forget about that there's even a rotation matrix. The
  7. model's locations are now rotated. Once that's done, we can move it back to the
  8. same position as before, with the inverse of the translation.