Jump to content
  • Advertisement
Sign in to follow this  
soofian

problem in rotating two objects separately by mose

This topic is 4887 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 want to rotate two 3d objects separately with mouse by picking each of them individually. but when i pick any one of them and rotate then both the objects rotate. can any body tell me how it can be rotate by mouse separately.i want to do this on the single view port.

Share this post


Link to post
Share on other sites
Advertisement
Well, it seems like you want to assign each object a matrix. Then, when you pick an object, get it's matrix, and update just that object's matrix. You have to work out your picking code though.


class Object
{
bool selected;
// Object Mesh
// 4x4 Matrix
};



...or something similar ;)

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!