leapjs icon indicating copy to clipboard operation
leapjs copied to clipboard

isFlapped

Open ktansai opened this issue 10 years ago • 3 comments

Hi. I want to use API that notice whether Leap motion tracking in flapped image or not . This is same as isFlipped in C++ , Unity/C# , Java , Obj-C.

ktansai avatar Oct 16 '14 13:10 ktansai

Just checked with our tracking team - it looks like the feature is on a deprecation track, to be removed soon from the other APIs. May I ask what you're hoping to use the feature for?

pehrlich avatar Oct 17 '14 18:10 pehrlich

When I use Leap motion attached on HMDs, I can't recognize whether hands coming from up or down and left or right in "auto flip tracking mode". If you have any ideas that recognize absolute position & direction of hands instead , it do for me , too.

ktansai avatar Oct 18 '14 08:10 ktansai

isFlipped was never actually implemented in the native APIs either -- it always returns false. There's actually no way for the Leap Motion sensor to know whether hands are coming in from one side or the other (since the device can be mounted either way). It doesn't contain any sensors that would tell it this. In auto-rotate mode, the software assumes are coming into view from the "normal" direction -- in desktop mode that will be from the user toward the device -- in HMD mode that will be from below the device reaching upward. The software will flip the z-axis to make this assumption true. However, until the hands first appear, the orientation is in an unknown state, so we can't really say whether the orientation is "flipped" or not "flipped." In short, the coordinates of the hand will always be correct for the normal situation. If the user has contorted themselves to put their hands above their head and then down into the field of view, then the auto-orientation result will be incorrect. If you need this behavior, you will have to turn off the auto-orientation feature and provide a way for the user to manually flip the orientation if they have mounted the device upside down.

jo3w4rd avatar Apr 21 '15 21:04 jo3w4rd