Sign in to follow this  
soofian

problem in rotating two objects separately by mose

Recommended Posts

soofian    100
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
Doggan    528
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this