Jump to content
  • Advertisement
Sign in to follow this  
maya18222

Cursor movement to for rotation transform

This topic is 2268 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 have a particle editor for which Im tryinig to create a little control to rotate the particle systems in their local space (not world space). I use circles which can be clicked for the axes and use the delta mouse movement for the angle. But after a few rotations the movement of the mouse needs to be reversed to create positive rotations due to the axes being rotated.

How can I figure out when to negate the delta mouse components as to always rotate in the direction the cursor is moving?

Share this post


Link to post
Share on other sites
Advertisement
You know where the center of the rotation circle thing is in screen space, so you know if the mouse is above the center point (above in screen space), so you can negate the delta value.

This is just a simple fix.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!