2

Are there examples I can borrow from regarding rotating a camera around its own X, Y and Z axes? I learned yesterday that I can use the translate(X|Y|Z) methods to move a camera along its own axes. Are there equivalents for rotation as well?

1
  • One would have to know the API for the camera, and it's likely that the documentation for the API already has examples. Commented Mar 28, 2013 at 19:44

1 Answer 1

3

In the development version ( three.js r58dev ), a new function has been added for rotating an object on it's own axis:

Object3D.rotateOnAxis( axis, angle );

axis must be a unit-length Vector3, and angle is in radians.

three.js r58dev

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.