Black Trigram (흑괘) - Korean Martial Arts Combat Simulator API - v0.7.9
    Preparing search index...

    Function useHandPoseTransitions

    • useHandPoseTransitions hook

      Manages hand pose transitions for both hands based on current animation. Automatically selects appropriate hand poses for different techniques and handles smooth transitions at 60fps.

      Parameters

      Returns UseHandPoseTransitionsReturn

      Hand states and update function

      const { leftHandState, rightHandState, updateHandAnimations } =
      useHandPoseTransitions({
      currentAnimation: "attack",
      attackAnimation: "jab",
      isBlocking: false,
      });

      // In useFrame callback
      useFrame((_, delta) => {
      updateHandAnimations(delta);
      });

      손자세전환훅