Archived

This topic is now archived and is closed to further replies.

LukeSkyRunner

Rotating vectors

Recommended Posts

LukeSkyRunner    136
I''m making a ray-polygon collision detection system and I want to check the collisions also when the object is rotated... so I think that to do it I will need to rotate the ray with the inverse angle of actual object angle, etc., etc., etc. My doubt is: how do I rotate my ray around the 0,0,0 origin?

Share this post


Link to post
Share on other sites
Enselic    829
You build yourself a rotation matrix and multiply the vector with that matrix. If you allow yourself to use D3DX its a piece of cake.


I am a signature virus. Please add me to your signature so that I may multiply.

Share this post


Link to post
Share on other sites