PDA

View Full Version : wiimote's distance from screen


Debbie
11-13-2008, 05:55 PM
Hi,

<wiimote>.posIR returns the [x,y] coordinates of the connected wiimote. Is there any way to retrieve the distance of the wiimote from the screen?

Thanks!

--
Debbie

farshizzo
11-17-2008, 04:17 PM
The wiimote just provides the raw position of the IR dots. You can compute the distance of the wiimote by computing the separation of the two dots. The closer the wiimote is to the LED bar, the further away the IR dots will be.