Jump to content
  • Advertisement


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


D3D Matrix Math question (how would i do this)

This topic is 6785 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

ok here is my question vertex A needs to rotate around Vertex B baised on B''s Orientation or in other words Vertex A is at a Fixed distance away from B, Vertex A needs to be at the right spot where if you draw a line with the orientation of B it goes through both verteces. eh I hope that came out clear ): can anyone help me with this? cheers! Kenny

Share this post

Link to post
Share on other sites
i may not have understood the question correctly, so bear with me...

this could be represented by two rotations around axes that are both perpendicular to B''s orientation vector.

an easier way is just to calculate the distance between A and B originally, then project A onto B''s vector.
i''m pretty sure this is done by just multiplying each component of B''s UNIT orientation vector by the distance.

good luck!

some people think i'm crazy, some people know it

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!