protected void ConvertMagicLeapKeyPoint(ManagedKeypoint keyPoint, TrackedHandJoint joint) { if (keyPoint == null) { return; } UpdateJointPose(joint, keyPoint.GetPosition(FilterType.Filtered), keyPoint.Rotation); }
private void DrawBone(string fingerName, Vector3 from, ManagedKeypoint to, Color colorA, Color colorB) { fingerName = Name(fingerName); Lines.DrawLine(fingerName, colorA, colorB, .0005f, from, to.positionFiltered); if (_managedHand.Visible && to.Visible) { Lines.SetVisibility(fingerName, true); } else { Lines.SetVisibility(fingerName, false); } }