leap motion - Getting Yaw of hand unstable -
i making puppet app leap motion. whenever try , yaw of hand seems wrong (ie: hand flat says @ 45 degrees or hand flat , says @ -30 degrees, unreliable , jumpy). use
hand hand = frame.hands().get(0); palm1position = hand.palmposition(); normal = hand1.palmnormal(); direction = hand1.direction(); palmroll = math.todegrees(normal1.roll()); palmyaw = math.todegrees(direction1.yaw());
to roll , yaw of hand. roll works yaw horrible. problem because marionettes rely heavily on yaw. idea why happening , how can fix it?
i'm in javascript , don't think have yet, java docs should have this
float pitch = hand.direction().pitch(); float yaw = hand.direction().yaw(); float roll = hand.palmnormal().roll();
see https://developer.leapmotion.com/documentation/languages/java/guides/leap_tracking.html
Comments
Post a Comment