Jump to content
  • Advertisement


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


Rotation Help

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

My current project can be described as follows: The user is presented with a simple quad (that is stored internally with 4 vertices, 4 edges and 1 face, where the edges of the face are specified in CCW order. Then we allow the user to create an edge that divides the face in two. Probably think something like this: +-------+-------* | | | | | | | | | | | | +-------+-------* Through a trackball, we let the user orient this as they please. After division the user then clicks another vertex, say either of the ones marked with a *. Then as the user holds the mouse button down and moves it, the two vertices marked * are rotated along the axis that divides the two faces. This is where I am stuck. Every rotate-point-around-axis implementation out there has not given me what I want. I sat down and came up with a solution with matrices, but it still gave me bugs. This is simple but it''s giving me bugs, and consequently, driving me nuts. Any idea how to do this? Thanks, TT

Share this post

Link to post
Share on other sites
I guess my picture didn''t come out as I wanted.
Thanks for your help, I guess it''s just a matter
of debuggin this thing.


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!