Reputation: 11
I want to track the head of a player in order to move the camera inside XNA. When the player rotates left or right, the camera inside XNA will respond to this action and will also rotate.
I tried using the head joint from Skeleton Data and taking the vector value X,Y but this is not an accurate solution. I need another solution that can rotate the camera inside XNA. Any suggestions?
Upvotes: 1
Views: 882
Reputation: 441
You could use the Face Tracking API and see the difference from a certain point on the users face (like their nose) to decide whether or not the user looked in a different direction. The points on a users face are assembled like this:
Then you can see if the X changed and by what amount to see the rotation effects. (You might want to see Facial Recognition with Kinect)
Upvotes: 4