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

    Function createHeadRecoilAnimation

    • Generate head recoil animation from hit

      Creates keyframes for head snapping back when struck. Intensity based on hit strength.

      Parameters

      • hitStrength: number

        Strength of hit (0-1)

      • OptionalhitDirection: Vector3

        Direction vector of hit (normalized)

      Returns HeadMovementKeyframes

      Head movement keyframes for recoil animation

      const recoil = createHeadRecoilAnimation(0.8, new THREE.Vector3(1, 0, 0));
      // Creates strong recoil animation to the right

      머리반동애니메이션생성