Hello everyone i am working on a project that includes a needle holder(a surgical instrument that is used to hold needle). What i want to do is map that needle holder on leap-motion hand and make it work like a scissor. I made the needle holder work by designing it in two parts and for the movement i have made these parts of the needle holder separately children of two empty objects that i have placed in the environment at the same place. Now i have the scissor moving by getting the value of .getfistStrength() function for the index finger like this
Frame frame = leapProvider.CurrentFrame;
List hands = leapProvider.CurrentFrame.Hands;
if (frame.Hands.Count > 0)
{
pinch = frame.Hands[0].GetFistStrength();
pinch = Vector3.Dot(frame.Hands[0].Fingers[1].Direction.ToVector3(), -frame.Hands[0].DistalAxis()).Map(-1, 1, 0, 1);
custom_piviot_left.rotate(-1 * pinch.Map(0.000f, 0.999f, -20f, 0f));
custom_piviot_right.rotate(pinch.Map(0.000f, 0.999f, -20f, 0f));
}
what i want to do now is make these two parts of the scissor move with my hand for that i have tried making both the empty objects that i am using as pivots to be the child of another object Needle Function as in the picture above I am having alot of trouble mapping these two on my index finger and thumb correctly please suggest what i am missing and what can i do thanks in advance.