BrianPeek.com
A Compendium of Random Uselessness

Taking in IR data

rated by 0 users
This post has 1 Reply | 0 Followers

Posted: Sat, Mar 28 2009 11:01 AM

Sorry if this has been posted or if its a complete novice question, but how do i take in data from the IR sensor to make a model rotate in XNA?

 

Any help would be greatly appreciated.

replied on Sun, May 24 2009 8:42 AM

This what i use to get the data:

WiimoteState ws = wm.WiimoteState;

Point p1 = ws.IRState.IRSensors[0].RawPosition;
Point p2 = ws.IRState.IRSensors[1].RawPosition;

I think you have to do the math on your own. Im currently doing a Imageview app and I just get coords from the wiimote and store them(the coords). I then run thru them and decide an action based on the coords (direction and lenght) over a given time.

Page 1 of 1 (2 items) | RSS