Euler rotation of direction vector

Posted by Tom Savage on Stack Overflow See other posts from Stack Overflow or by Tom Savage
Published on 2010-05-29T20:16:20Z Indexed on 2010/05/29 20:22 UTC
Read the original article Hit count: 183

Filed under:
|
|

I have defined an object in 3D space with position, rotation and scale values (all defined as 3D vectors). It also has upwards and forwards direction vectors. When I rotate the object, I need these direction vectors to rotate with it.

Assuming my up vector is (0, 1, 0) and my forwards vector is (0, 0, 1) at zero rotation, how might I achieve this?

© Stack Overflow or respective owner

Related posts about 3d

Related posts about vector