Hi,
I'm trying to learn how to program Orion 3.2 in C++ and it seems I can't get the rotation angle of the hands. What I have sofar is this:
if (fabs(angle) > fabs(hand.rotationAngle(previous, Leap::Vector::xAxis())))
{
angle = hand.rotationAngle(previous, Leap::Vector::xAxis());
}
if (fabs(angle) > fabs(hand.rotationAngle(previous, Leap::Vector::yAxis())))
{
angle = hand.rotationAngle(previous, Leap::Vector::yAxis());
}
if (fabs(angle) > fabs(hand.rotationAngle(previous, Leap::Vector::zAxis())))
{
angle = hand.rotationAngle(previous, Leap::Vector::zAxis());
}
Hand is valid, but no matter what, the angle is always 0!
For translations I do receive data.
Any ideas what can be going wrong?