Skip to main content
GameDev.net gamedev.net
🔒 Locked

Vector rotation

Started by rpg_code_master Jan 30, 2004 at 9:15 AM 5 replies 1.4k views
Original Post
rpg_code_master
rpg_code_master
Can anyone tell me how to rotate a 3D vector. As in if I have a vector facing the direction 0.2,-2.5,-10.0. How do I rotate it so that it faces say 23 degrees clockwise? And for it to be the same length to!!
_DarkWIng_
_DarkWIng_
Around what axis?
You should never let your fears become the boundaries of your dreams.
Hairu
Hairu
Create a 4x4 matrix to represent the rotation and multiply the vector into it. The resulting vector is the rotated version of the first.
rpg_code_master
rpg_code_master
I don''t know anything about matrix math, you wana tell how to do it please?
Dactylos
Dactylos
Look here, under the topic "Matrices".

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.