• Advertisement

Archived

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

Rotating vectors

This topic is 5461 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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

  • Advertisement