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

    Function calculateFootPositions

    • Calculate foot X positions for left and right feet based on stance width

      Returns X-axis offsets for positioning FOOT_L and FOOT_R bones. Assumes center point (pelvis) is at X=0.

      Parameters

      • stanceWidthMultiplier: number

        Multiplier from KOREAN_STANCE_BIOMECHANICS

      • shoulderWidth: number

        Fighter's shoulder width in centimeters

      Returns { leftFootX: number; rightFootX: number }

      Object with leftFootX (negative) and rightFootX (positive) positions

      // Jin Thunder stance (2.0x) for Musa (46cm shoulders)
      const footPositions = calculateFootPositions(2.0, 46);
      // Returns: { leftFootX: -0.46, rightFootX: 0.46 }

      발위치계산