isPointing property
bool
get
isPointing
Whether the index finger is extended (pointing).
Implementation
bool get isPointing {
final palm = palmPosition;
final indexTip = joints[HandJoint.indexTip];
final middleTip = joints[HandJoint.middleTip];
if (palm == null || indexTip == null || middleTip == null) return false;
return (indexTip - palm).length > 0.08 && (middleTip - palm).length < 0.05;
}