Jump to content

I'm programming using the Kinect to interface with a 3D world. I have made it so that the hands control objects in the 3D space; if you move your hand towards the sensor, the objects move in the -Z direction, etc. 

If I rotate the camera, however, it begins to feel unnatural as the objects no longer appear to move in the same direction as the hand. I want to adjust the calculations such that the objects always move on the axis with respect to the camera. To do this, I need to make the z component of the 'change vector' (the vector the objects would move on with respect to the global frame) align with the 'track vector' (the vector between where the camera is and the point it's looking at). How does one rotate a vector such that a given component of it is parallel to another vector? 

Link to comment
https://linustechtips.com/topic/647786-vector-math-kinect-3d-world/
Share on other sites

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

×