How to convert a given Tilt, Roll and Pan into Movement Vertically and Movement Horizontally?
<p>I built a headtracker that outputs three values</p>

<ul>
<li>Tilt, ranges from 0° to ca. 180°</li>
<li>Roll, ranges from 0° to ca. 360°</li>
<li>Pan, ranges from 0° to ca. 180°</li>
</ul>

<p>These three seem to be connected somehow, so I can't just use the roll value to get roll I need to include them all. (See <a href="http://youtu.be/7rUX3JagxJ0" rel="nofollow">http://youtu.be/7rUX3JagxJ0</a> )</p>

<p>What did I do to solve this? I read on the internet to find a phrase called gimbal lock and that those were connected together somehow. The source wasn't useful.</p>

<p>My goal is to use the headtracker to convert head rotation into mouse movements. So in short:</p>

<p><strong>How to convert the given Tilt, Roll and Pan into Movement Vertically and Movement Horizontally values?</strong></p>
