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

    Function applyGuardPositionToConfig

    • Apply guard position to KeyframeConfig

      Applies a Korean martial arts guard position to a keyframe configuration. Can apply to one hand (for techniques where one hand strikes) or both hands.

      Usage:

      const kf = new KeyframeConfig(0.0);
      applyGuardPositionToConfig(kf, MIDDLE_GUARD, "both"); // Both hands in guard
      applyGuardPositionToConfig(kf, MIDDLE_GUARD, "left"); // Only left hand guards

      Parameters

      • config: GuardRotatable

        KeyframeConfig to apply guard to

      • guardPosition: GuardPosition

        Guard position configuration

      • hand: "left" | "right" | "both" = "both"

        Which hand(s) to apply ("left" | "right" | "both")

      Returns void

      KeyframeConfig에방어자세적용