blacktrigram 0.7.43 → 0.7.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (750) hide show
  1. package/lib/audio/AudioManager.d.ts +26 -0
  2. package/lib/audio/AudioManager.d.ts.map +1 -1
  3. package/lib/audio/AudioManager.js +26 -0
  4. package/lib/audio/AudioManager.js.map +1 -1
  5. package/lib/audio/AudioPool.js +3 -0
  6. package/lib/audio/AudioPool.js.map +1 -1
  7. package/lib/audio/index.d.ts.map +1 -1
  8. package/lib/audio/index.js.map +1 -1
  9. package/lib/audio/types.d.ts +18 -2
  10. package/lib/audio/types.d.ts.map +1 -1
  11. package/lib/audio/types.js +1 -0
  12. package/lib/audio/types.js.map +1 -1
  13. package/lib/components/effects/WindParticles3D.d.ts.map +1 -1
  14. package/lib/components/index.d.ts.map +1 -1
  15. package/lib/components/index.js.map +1 -1
  16. package/lib/components/screens/combat/CombatScreen3D.d.ts.map +1 -1
  17. package/lib/components/screens/combat/CombatScreen3D.js.map +1 -1
  18. package/lib/components/screens/combat/components/controls/KeyboardHints.d.ts +0 -1
  19. package/lib/components/screens/combat/components/controls/KeyboardHints.d.ts.map +1 -1
  20. package/lib/components/screens/combat/components/controls/KeyboardHints.js +0 -1
  21. package/lib/components/screens/combat/components/controls/KeyboardHints.js.map +1 -1
  22. package/lib/components/screens/combat/components/controls/PauseMenu.d.ts.map +1 -1
  23. package/lib/components/screens/combat/components/controls/PauseMenu.js.map +1 -1
  24. package/lib/components/screens/combat/components/effects/ArterialSpray3D.d.ts.map +1 -1
  25. package/lib/components/screens/combat/components/effects/BloodDecals3D.d.ts.map +1 -1
  26. package/lib/components/screens/combat/components/effects/BloodDecals3D.js.map +1 -1
  27. package/lib/components/screens/combat/components/effects/BloodLossOverlayHtml.d.ts.map +1 -1
  28. package/lib/components/screens/combat/components/effects/BloodLossOverlayHtml.js.map +1 -1
  29. package/lib/components/screens/combat/components/effects/BloodParticles3D.d.ts.map +1 -1
  30. package/lib/components/screens/combat/components/effects/BloodParticles3D.js.map +1 -1
  31. package/lib/components/screens/combat/components/effects/BloodViscosity3D.d.ts.map +1 -1
  32. package/lib/components/screens/combat/components/effects/BloodViscosity3D.js.map +1 -1
  33. package/lib/components/screens/combat/components/effects/BoneCrackParticles3D.d.ts.map +1 -1
  34. package/lib/components/screens/combat/components/effects/CombatParticleEffects3D.d.ts.map +1 -1
  35. package/lib/components/screens/combat/components/effects/CombatParticleEffects3D.js.map +1 -1
  36. package/lib/components/screens/combat/components/effects/ConsciousnessBlur.d.ts.map +1 -1
  37. package/lib/components/screens/combat/components/effects/ConsciousnessBlur.js.map +1 -1
  38. package/lib/components/screens/combat/components/effects/DustClouds3D.d.ts.map +1 -1
  39. package/lib/components/screens/combat/components/effects/EarthCrackEffect3D.d.ts.map +1 -1
  40. package/lib/components/screens/combat/components/effects/EarthHealingEffect3D.d.ts.map +1 -1
  41. package/lib/components/screens/combat/components/effects/ImpactSparks3D.d.ts.map +1 -1
  42. package/lib/components/screens/combat/components/effects/InternalDamage3D.d.ts.map +1 -1
  43. package/lib/components/screens/combat/components/effects/InternalDamage3D.js.map +1 -1
  44. package/lib/components/screens/combat/components/effects/LiPrecisionTargetingOverlay.d.ts.map +1 -1
  45. package/lib/components/screens/combat/components/effects/NerveStrikeParticles3D.d.ts.map +1 -1
  46. package/lib/components/screens/combat/components/effects/PainVignette.d.ts.map +1 -1
  47. package/lib/components/screens/combat/components/effects/PainVignette.js.map +1 -1
  48. package/lib/components/screens/combat/components/effects/ParticleAudio3D.d.ts.map +1 -1
  49. package/lib/components/screens/combat/components/effects/ParticleAudio3D.js.map +1 -1
  50. package/lib/components/screens/combat/components/effects/TraumaOverlay3D.d.ts.map +1 -1
  51. package/lib/components/screens/combat/components/effects/TraumaOverlay3D.js.map +1 -1
  52. package/lib/components/screens/combat/components/effects/WaterRipple3D.d.ts.map +1 -1
  53. package/lib/components/screens/combat/components/effects/WaterWave3D.d.ts.map +1 -1
  54. package/lib/components/screens/combat/components/effects/index.d.ts.map +1 -1
  55. package/lib/components/screens/combat/components/feedback/MatchCountdown.d.ts.map +1 -1
  56. package/lib/components/screens/combat/components/feedback/MatchCountdown.js.map +1 -1
  57. package/lib/components/screens/combat/components/feedback/RoundAnnouncementOverlayHtml.d.ts.map +1 -1
  58. package/lib/components/screens/combat/components/feedback/RoundAnnouncementOverlayHtml.js.map +1 -1
  59. package/lib/components/screens/combat/components/feedback/RoundStartAnnouncementOverlayHtml.d.ts.map +1 -1
  60. package/lib/components/screens/combat/components/feedback/RoundStartAnnouncementOverlayHtml.js.map +1 -1
  61. package/lib/components/screens/combat/components/hud/CombatBottomHUD.d.ts.map +1 -1
  62. package/lib/components/screens/combat/components/hud/CombatBottomHUD.js.map +1 -1
  63. package/lib/components/screens/combat/components/hud/CombatLeftHUD.d.ts.map +1 -1
  64. package/lib/components/screens/combat/components/hud/CombatLeftHUD.js.map +1 -1
  65. package/lib/components/screens/combat/components/hud/CombatPortraitStatusStrip.d.ts.map +1 -1
  66. package/lib/components/screens/combat/components/hud/CombatPortraitStatusStrip.js.map +1 -1
  67. package/lib/components/screens/combat/components/hud/CombatRightHUD.d.ts.map +1 -1
  68. package/lib/components/screens/combat/components/hud/CombatRightHUD.js.map +1 -1
  69. package/lib/components/screens/combat/components/hud/CombatTopHUD.d.ts.map +1 -1
  70. package/lib/components/screens/combat/components/hud/CombatTopHUD.js.map +1 -1
  71. package/lib/components/screens/combat/components/hud/DifficultyIndicator.d.ts.map +1 -1
  72. package/lib/components/screens/combat/components/hud/DifficultyIndicator.js.map +1 -1
  73. package/lib/components/screens/combat/components/hud/FPSMonitor.d.ts.map +1 -1
  74. package/lib/components/screens/combat/components/hud/FPSMonitor.js.map +1 -1
  75. package/lib/components/screens/combat/components/hud/PlayerStateOverlayHtml.d.ts.map +1 -1
  76. package/lib/components/screens/combat/components/hud/PlayerStateOverlayHtml.js.map +1 -1
  77. package/lib/components/screens/combat/components/indicators/BalanceIndicator.d.ts.map +1 -1
  78. package/lib/components/screens/combat/components/indicators/BalanceIndicator.js.map +1 -1
  79. package/lib/components/screens/combat/components/indicators/InputBufferDisplay.d.ts +0 -1
  80. package/lib/components/screens/combat/components/indicators/InputBufferDisplay.d.ts.map +1 -1
  81. package/lib/components/screens/combat/components/indicators/InputBufferDisplay.js +0 -1
  82. package/lib/components/screens/combat/components/indicators/InputBufferDisplay.js.map +1 -1
  83. package/lib/components/screens/combat/components/indicators/StaminaWarning.d.ts.map +1 -1
  84. package/lib/components/screens/combat/components/indicators/StaminaWarning.js.map +1 -1
  85. package/lib/components/screens/combat/components/indicators/TechniqueNameDisplay.d.ts +0 -2
  86. package/lib/components/screens/combat/components/indicators/TechniqueNameDisplay.d.ts.map +1 -1
  87. package/lib/components/screens/combat/components/indicators/TechniqueNameDisplay.js +0 -1
  88. package/lib/components/screens/combat/components/indicators/TechniqueNameDisplay.js.map +1 -1
  89. package/lib/components/screens/combat/helpers/AnimationUpdater.d.ts.map +1 -1
  90. package/lib/components/screens/combat/helpers/AnimationUpdater.js.map +1 -1
  91. package/lib/components/screens/combat/helpers/combatHelpers.d.ts.map +1 -1
  92. package/lib/components/screens/combat/helpers/combatHelpers.js.map +1 -1
  93. package/lib/components/screens/combat/hooks/useAICombat.d.ts.map +1 -1
  94. package/lib/components/screens/combat/hooks/useAICombat.js.map +1 -1
  95. package/lib/components/screens/combat/hooks/useCombatActions.d.ts.map +1 -1
  96. package/lib/components/screens/combat/hooks/useCombatActions.js.map +1 -1
  97. package/lib/components/screens/combat/hooks/useCombatAttackMovement.d.ts.map +1 -1
  98. package/lib/components/screens/combat/hooks/useCombatAttackMovement.js.map +1 -1
  99. package/lib/components/screens/combat/hooks/useCombatAudio.d.ts.map +1 -1
  100. package/lib/components/screens/combat/hooks/useCombatAudio.js.map +1 -1
  101. package/lib/components/screens/combat/hooks/useCombatLayout.d.ts.map +1 -1
  102. package/lib/components/screens/combat/hooks/useCombatLayout.js.map +1 -1
  103. package/lib/components/screens/combat/hooks/useCombatState.d.ts.map +1 -1
  104. package/lib/components/screens/combat/hooks/useCombatState.js.map +1 -1
  105. package/lib/components/screens/combat/hooks/useGrapplingAudio.d.ts.map +1 -1
  106. package/lib/components/screens/combat/hooks/usePreloadCombatAudio.d.ts.map +1 -1
  107. package/lib/components/screens/controls/ControlsScreen3D.d.ts.map +1 -1
  108. package/lib/components/screens/controls/ControlsScreen3D.js.map +1 -1
  109. package/lib/components/screens/controls/components/ControlBindingsOverlayHtml.d.ts.map +1 -1
  110. package/lib/components/screens/controls/components/ControlBindingsOverlayHtml.js.map +1 -1
  111. package/lib/components/screens/controls/components/GamepadVisualization3D.d.ts.map +1 -1
  112. package/lib/components/screens/controls/components/GamepadVisualization3D.js.map +1 -1
  113. package/lib/components/screens/controls/components/InteractiveControlDemoOverlayHtml.d.ts.map +1 -1
  114. package/lib/components/screens/controls/components/InteractiveControlDemoOverlayHtml.js.map +1 -1
  115. package/lib/components/screens/controls/components/Key3D.d.ts.map +1 -1
  116. package/lib/components/screens/controls/components/Key3D.js.map +1 -1
  117. package/lib/components/screens/controls/components/VisualKeyboard3D.d.ts.map +1 -1
  118. package/lib/components/screens/controls/components/VisualKeyboard3D.js.map +1 -1
  119. package/lib/components/screens/controls/constants/ControlsConstants.d.ts.map +1 -1
  120. package/lib/components/screens/controls/constants/ControlsConstants.js.map +1 -1
  121. package/lib/components/screens/controls/hooks/useControlsState.d.ts.map +1 -1
  122. package/lib/components/screens/controls/hooks/useControlsState.js.map +1 -1
  123. package/lib/components/screens/endscreen/EndScreen3D.d.ts.map +1 -1
  124. package/lib/components/screens/endscreen/EndScreen3D.js.map +1 -1
  125. package/lib/components/screens/endscreen/components/DefeatAnimation3D.d.ts.map +1 -1
  126. package/lib/components/screens/endscreen/components/DefeatAnimation3D.js.map +1 -1
  127. package/lib/components/screens/endscreen/components/NavigationButtonsOverlayHtml.d.ts.map +1 -1
  128. package/lib/components/screens/endscreen/components/NavigationButtonsOverlayHtml.js.map +1 -1
  129. package/lib/components/screens/endscreen/components/PerformanceBreakdownOverlayHtml.d.ts.map +1 -1
  130. package/lib/components/screens/endscreen/components/PerformanceBreakdownOverlayHtml.js.map +1 -1
  131. package/lib/components/screens/endscreen/components/PerformanceRatingOverlayHtml.d.ts.map +1 -1
  132. package/lib/components/screens/endscreen/components/PerformanceRatingOverlayHtml.js.map +1 -1
  133. package/lib/components/screens/endscreen/components/VictoryAnimation3D.d.ts.map +1 -1
  134. package/lib/components/screens/endscreen/components/VictoryAnimation3D.js.map +1 -1
  135. package/lib/components/screens/endscreen/components/WinnerDisplayOverlayHtml.d.ts.map +1 -1
  136. package/lib/components/screens/endscreen/components/WinnerDisplayOverlayHtml.js.map +1 -1
  137. package/lib/components/screens/endscreen/components/index.d.ts.map +1 -1
  138. package/lib/components/screens/endscreen/index.d.ts.map +1 -1
  139. package/lib/components/screens/intro/IntroScreen3D.d.ts.map +1 -1
  140. package/lib/components/screens/intro/IntroScreen3D.js +1 -1
  141. package/lib/components/screens/intro/IntroScreen3D.js.map +1 -1
  142. package/lib/components/screens/intro/components/AbilityListOverlayHtml.d.ts.map +1 -1
  143. package/lib/components/screens/intro/components/AbilityListOverlayHtml.js.map +1 -1
  144. package/lib/components/screens/intro/components/ArchetypeCardGridOverlayHtml.d.ts.map +1 -1
  145. package/lib/components/screens/intro/components/ArchetypeCardGridOverlayHtml.js.map +1 -1
  146. package/lib/components/screens/intro/components/ArchetypeCardOverlayHtml.d.ts.map +1 -1
  147. package/lib/components/screens/intro/components/ArchetypeCardOverlayHtml.js.map +1 -1
  148. package/lib/components/screens/intro/components/ArchetypeDisplayOverlayHtml.d.ts.map +1 -1
  149. package/lib/components/screens/intro/components/ArchetypeDisplayOverlayHtml.js.map +1 -1
  150. package/lib/components/screens/intro/components/EnhancedArchetypeDisplayOverlayHtml.d.ts.map +1 -1
  151. package/lib/components/screens/intro/components/EnhancedArchetypeDisplayOverlayHtml.js.map +1 -1
  152. package/lib/components/screens/intro/components/MenuButtonsOverlayHtml.d.ts.map +1 -1
  153. package/lib/components/screens/intro/components/MenuButtonsOverlayHtml.js.map +1 -1
  154. package/lib/components/screens/intro/components/MenuSectionOverlayHtml.d.ts.map +1 -1
  155. package/lib/components/screens/intro/components/MenuSectionOverlayHtml.js.map +1 -1
  156. package/lib/components/screens/intro/components/StatBarOverlayHtml.d.ts.map +1 -1
  157. package/lib/components/screens/intro/components/StatBarOverlayHtml.js.map +1 -1
  158. package/lib/components/screens/philosophy/PhilosophyScreen3D.d.ts.map +1 -1
  159. package/lib/components/screens/philosophy/PhilosophyScreen3D.js.map +1 -1
  160. package/lib/components/screens/philosophy/components/InteractiveTrigramGridOverlayHtml.d.ts +0 -1
  161. package/lib/components/screens/philosophy/components/InteractiveTrigramGridOverlayHtml.d.ts.map +1 -1
  162. package/lib/components/screens/philosophy/components/PhilosophyNavigationOverlayHtml.d.ts +0 -1
  163. package/lib/components/screens/philosophy/components/PhilosophyNavigationOverlayHtml.d.ts.map +1 -1
  164. package/lib/components/screens/philosophy/components/PhilosophySectionOverlayHtml.d.ts +0 -1
  165. package/lib/components/screens/philosophy/components/PhilosophySectionOverlayHtml.d.ts.map +1 -1
  166. package/lib/components/screens/philosophy/components/PhilosophyTextOverlayHtml.d.ts +0 -1
  167. package/lib/components/screens/philosophy/components/PhilosophyTextOverlayHtml.d.ts.map +1 -1
  168. package/lib/components/screens/philosophy/components/TrigramSymbol3D.d.ts +0 -1
  169. package/lib/components/screens/philosophy/components/TrigramSymbol3D.d.ts.map +1 -1
  170. package/lib/components/screens/philosophy/components/TrigramVisualization3D.d.ts +0 -1
  171. package/lib/components/screens/philosophy/components/TrigramVisualization3D.d.ts.map +1 -1
  172. package/lib/components/screens/philosophy/hooks/usePhilosophyState.d.ts +0 -1
  173. package/lib/components/screens/philosophy/hooks/usePhilosophyState.d.ts.map +1 -1
  174. package/lib/components/screens/training/TrainingScreen3D.d.ts.map +1 -1
  175. package/lib/components/screens/training/TrainingScreen3D.js.map +1 -1
  176. package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.d.ts.map +1 -1
  177. package/lib/components/screens/training/components/AnatomyControlsOverlayHtml.js.map +1 -1
  178. package/lib/components/screens/training/components/AnatomyOverlay3D.d.ts.map +1 -1
  179. package/lib/components/screens/training/components/AnatomyOverlay3D.js.map +1 -1
  180. package/lib/components/screens/training/components/DamageNumber3D.d.ts.map +1 -1
  181. package/lib/components/screens/training/components/FootPlacementMarkers3D.d.ts.map +1 -1
  182. package/lib/components/screens/training/components/FootPlacementMarkers3D.js.map +1 -1
  183. package/lib/components/screens/training/components/FootworkDrillsOverlayHtml.d.ts.map +1 -1
  184. package/lib/components/screens/training/components/FootworkDrillsOverlayHtml.js.map +1 -1
  185. package/lib/components/screens/training/components/HitFeedbackEffect3D.d.ts.map +1 -1
  186. package/lib/components/screens/training/components/HitFeedbackEffect3D.js.map +1 -1
  187. package/lib/components/screens/training/components/TrainingAICharacter3D.d.ts.map +1 -1
  188. package/lib/components/screens/training/components/TrainingArena3D.d.ts.map +1 -1
  189. package/lib/components/screens/training/components/TrainingControlsOverlayHtml.d.ts.map +1 -1
  190. package/lib/components/screens/training/components/TrainingControlsOverlayHtml.js.map +1 -1
  191. package/lib/components/screens/training/components/TrainingDummy3D.d.ts.map +1 -1
  192. package/lib/components/screens/training/components/TrainingDummy3D.js.map +1 -1
  193. package/lib/components/screens/training/components/TrainingFeedbackOverlayHtml.d.ts.map +1 -1
  194. package/lib/components/screens/training/components/TrainingFeedbackOverlayHtml.js.map +1 -1
  195. package/lib/components/screens/training/components/TrainingHitEffects3D.d.ts.map +1 -1
  196. package/lib/components/screens/training/components/TrainingModeSelectorOverlayHtml.d.ts.map +1 -1
  197. package/lib/components/screens/training/components/TrainingModeSelectorOverlayHtml.js.map +1 -1
  198. package/lib/components/screens/training/components/TrainingStatsOverlayHtml.d.ts.map +1 -1
  199. package/lib/components/screens/training/components/TrainingStatsOverlayHtml.js.map +1 -1
  200. package/lib/components/screens/training/components/VitalPointMarker3D.d.ts.map +1 -1
  201. package/lib/components/screens/training/components/VitalPointMarker3D.js.map +1 -1
  202. package/lib/components/screens/training/components/VitalPointTrainingOverlayHtml.d.ts.map +1 -1
  203. package/lib/components/screens/training/components/VitalPointTrainingOverlayHtml.js.map +1 -1
  204. package/lib/components/screens/training/components/hud/TrainingBottomHUD.d.ts.map +1 -1
  205. package/lib/components/screens/training/components/hud/TrainingBottomHUD.js.map +1 -1
  206. package/lib/components/screens/training/components/hud/TrainingLeftHUD.d.ts.map +1 -1
  207. package/lib/components/screens/training/components/hud/TrainingLeftHUD.js.map +1 -1
  208. package/lib/components/screens/training/components/hud/TrainingRightHUD.d.ts.map +1 -1
  209. package/lib/components/screens/training/components/hud/TrainingRightHUD.js.map +1 -1
  210. package/lib/components/screens/training/components/hud/TrainingTopHUD.d.ts.map +1 -1
  211. package/lib/components/screens/training/components/hud/TrainingTopHUD.js.map +1 -1
  212. package/lib/components/screens/training/components/index.d.ts.map +1 -1
  213. package/lib/components/screens/training/hooks/useAttackMovement.d.ts.map +1 -1
  214. package/lib/components/screens/training/hooks/useAttackMovement.js.map +1 -1
  215. package/lib/components/screens/training/hooks/useTrainingActions.d.ts.map +1 -1
  216. package/lib/components/screens/training/hooks/useTrainingActions.js.map +1 -1
  217. package/lib/components/screens/training/hooks/useTrainingLayout.d.ts.map +1 -1
  218. package/lib/components/screens/training/hooks/useTrainingLayout.js.map +1 -1
  219. package/lib/components/screens/training/hooks/useTrainingState.d.ts.map +1 -1
  220. package/lib/components/screens/training/hooks/useTrainingState.js.map +1 -1
  221. package/lib/components/shared/base/AccessibilityProvider.d.ts.map +1 -1
  222. package/lib/components/shared/base/BaseButton.d.ts.map +1 -1
  223. package/lib/components/shared/base/BaseButton.js.map +1 -1
  224. package/lib/components/shared/base/BaseButtonOverlayHtml.d.ts.map +1 -1
  225. package/lib/components/shared/base/BaseButtonOverlayHtml.js.map +1 -1
  226. package/lib/components/shared/base/BasePanel.d.ts.map +1 -1
  227. package/lib/components/shared/base/BasePanel.js.map +1 -1
  228. package/lib/components/shared/base/BaseText.d.ts.map +1 -1
  229. package/lib/components/shared/base/BaseText.js.map +1 -1
  230. package/lib/components/shared/base/ResponsiveContainer.d.ts.map +1 -1
  231. package/lib/components/shared/base/index.d.ts.map +1 -1
  232. package/lib/components/shared/base/useKoreanTheme.d.ts.map +1 -1
  233. package/lib/components/shared/base/useKoreanTheme.js.map +1 -1
  234. package/lib/components/shared/debug/PerformanceDebugOverlayHtml.d.ts.map +1 -1
  235. package/lib/components/shared/debug/PerformanceDebugOverlayHtml.js.map +1 -1
  236. package/lib/components/shared/effects/ScreenFlash.d.ts.map +1 -1
  237. package/lib/components/shared/mobile/ActionButtons.d.ts.map +1 -1
  238. package/lib/components/shared/mobile/ActionButtons.js +0 -1
  239. package/lib/components/shared/mobile/ActionButtons.js.map +1 -1
  240. package/lib/components/shared/mobile/GestureRecognizerPure.d.ts +0 -1
  241. package/lib/components/shared/mobile/GestureRecognizerPure.d.ts.map +1 -1
  242. package/lib/components/shared/mobile/GestureRecognizerPure.js +0 -1
  243. package/lib/components/shared/mobile/GestureRecognizerPure.js.map +1 -1
  244. package/lib/components/shared/mobile/HapticController.d.ts +0 -13
  245. package/lib/components/shared/mobile/HapticController.d.ts.map +1 -1
  246. package/lib/components/shared/mobile/HapticController.js +0 -10
  247. package/lib/components/shared/mobile/HapticController.js.map +1 -1
  248. package/lib/components/shared/mobile/MobileControlsPure.d.ts.map +1 -1
  249. package/lib/components/shared/mobile/MobileControlsPure.js.map +1 -1
  250. package/lib/components/shared/mobile/PerformanceMonitor.d.ts +0 -15
  251. package/lib/components/shared/mobile/PerformanceMonitor.d.ts.map +1 -1
  252. package/lib/components/shared/mobile/StanceWheelPure.d.ts +0 -1
  253. package/lib/components/shared/mobile/StanceWheelPure.d.ts.map +1 -1
  254. package/lib/components/shared/mobile/StanceWheelPure.js +0 -1
  255. package/lib/components/shared/mobile/StanceWheelPure.js.map +1 -1
  256. package/lib/components/shared/mobile/TouchOptimizer.d.ts +0 -4
  257. package/lib/components/shared/mobile/TouchOptimizer.d.ts.map +1 -1
  258. package/lib/components/shared/mobile/TouchOptimizer.js +0 -3
  259. package/lib/components/shared/mobile/TouchOptimizer.js.map +1 -1
  260. package/lib/components/shared/mobile/VirtualDPad.d.ts.map +1 -1
  261. package/lib/components/shared/mobile/VirtualDPad.js +0 -1
  262. package/lib/components/shared/mobile/VirtualDPad.js.map +1 -1
  263. package/lib/components/shared/mobile/index.d.ts.map +1 -1
  264. package/lib/components/shared/three/anatomy/BodySurface.d.ts.map +1 -1
  265. package/lib/components/shared/three/anatomy/BodySurface.js.map +1 -1
  266. package/lib/components/shared/three/anatomy/BoneAttachedMuscles.d.ts.map +1 -1
  267. package/lib/components/shared/three/anatomy/BoneAttachedMuscles.js.map +1 -1
  268. package/lib/components/shared/three/anatomy/BoneClothing.d.ts.map +1 -1
  269. package/lib/components/shared/three/anatomy/BoneClothing.js.map +1 -1
  270. package/lib/components/shared/three/anatomy/BoneRenderer.d.ts +0 -1
  271. package/lib/components/shared/three/anatomy/BoneRenderer.d.ts.map +1 -1
  272. package/lib/components/shared/three/anatomy/BoneRenderer.js.map +1 -1
  273. package/lib/components/shared/three/anatomy/Face3D.d.ts.map +1 -1
  274. package/lib/components/shared/three/anatomy/Face3D.js.map +1 -1
  275. package/lib/components/shared/three/anatomy/Foot3D.d.ts +0 -1
  276. package/lib/components/shared/three/anatomy/Foot3D.d.ts.map +1 -1
  277. package/lib/components/shared/three/anatomy/Foot3D.js.map +1 -1
  278. package/lib/components/shared/three/anatomy/Hand3D.d.ts +0 -1
  279. package/lib/components/shared/three/anatomy/Hand3D.d.ts.map +1 -1
  280. package/lib/components/shared/three/anatomy/Hand3D.js.map +1 -1
  281. package/lib/components/shared/three/effects/ActionFeedback.d.ts.map +1 -1
  282. package/lib/components/shared/three/effects/ActionFeedback.js.map +1 -1
  283. package/lib/components/shared/three/effects/DamageNumbers.d.ts.map +1 -1
  284. package/lib/components/shared/three/effects/DamageNumbers.js.map +1 -1
  285. package/lib/components/shared/three/effects/ExplosiveBurstEffect3D.d.ts.map +1 -1
  286. package/lib/components/shared/three/effects/GrapplingIndicator3D.d.ts.map +1 -1
  287. package/lib/components/shared/three/effects/HitEffects3D.d.ts.map +1 -1
  288. package/lib/components/shared/three/effects/HitEffects3D.js.map +1 -1
  289. package/lib/components/shared/three/effects/LimbExposureIndicator3D.d.ts.map +1 -1
  290. package/lib/components/shared/three/effects/NerveDisruptionEffect3D.d.ts.map +1 -1
  291. package/lib/components/shared/three/effects/PlayerStateIndicators.d.ts.map +1 -1
  292. package/lib/components/shared/three/effects/PlayerStateIndicators.js.map +1 -1
  293. package/lib/components/shared/three/effects/StanceSymbol3D.d.ts.map +1 -1
  294. package/lib/components/shared/three/effects/StanceSymbol3D.js.map +1 -1
  295. package/lib/components/shared/three/effects/StanceTransitionEffect.d.ts.map +1 -1
  296. package/lib/components/shared/three/effects/StanceTransitionEffect.js.map +1 -1
  297. package/lib/components/shared/three/effects/ThunderEffect3D.d.ts.map +1 -1
  298. package/lib/components/shared/three/effects/VitalPointMarkers3D.d.ts.map +1 -1
  299. package/lib/components/shared/three/effects/VitalPointMarkers3D.js.map +1 -1
  300. package/lib/components/shared/three/index.d.ts.map +1 -1
  301. package/lib/components/shared/three/indicators/ElementalColorSystem.d.ts +0 -6
  302. package/lib/components/shared/three/indicators/ElementalColorSystem.d.ts.map +1 -1
  303. package/lib/components/shared/three/indicators/ElementalColorSystem.js +0 -4
  304. package/lib/components/shared/three/indicators/ElementalColorSystem.js.map +1 -1
  305. package/lib/components/shared/three/indicators/GuardIndicator.d.ts +0 -1
  306. package/lib/components/shared/three/indicators/GuardIndicator.d.ts.map +1 -1
  307. package/lib/components/shared/three/indicators/GuardIndicator.js +0 -1
  308. package/lib/components/shared/three/indicators/GuardIndicator.js.map +1 -1
  309. package/lib/components/shared/three/indicators/HapticFeedback.d.ts +0 -7
  310. package/lib/components/shared/three/indicators/HapticFeedback.d.ts.map +1 -1
  311. package/lib/components/shared/three/indicators/HapticFeedback.js +0 -2
  312. package/lib/components/shared/three/indicators/HapticFeedback.js.map +1 -1
  313. package/lib/components/shared/three/indicators/StanceChangeIndicator.d.ts +0 -1
  314. package/lib/components/shared/three/indicators/StanceChangeIndicator.d.ts.map +1 -1
  315. package/lib/components/shared/three/indicators/StanceChangeIndicator.js +0 -1
  316. package/lib/components/shared/three/indicators/StanceChangeIndicator.js.map +1 -1
  317. package/lib/components/shared/three/indicators/TrigramSymbol3D.d.ts +0 -1
  318. package/lib/components/shared/three/indicators/TrigramSymbol3D.d.ts.map +1 -1
  319. package/lib/components/shared/three/models/Player3DWithTransitions.d.ts.map +1 -1
  320. package/lib/components/shared/three/models/Player3DWithTransitions.js.map +1 -1
  321. package/lib/components/shared/three/models/SkeletalPlayer3D.d.ts.map +1 -1
  322. package/lib/components/shared/three/models/SkeletalPlayer3D.js.map +1 -1
  323. package/lib/components/shared/three/optimization/AdaptiveQuality.d.ts.map +1 -1
  324. package/lib/components/shared/three/optimization/AdaptiveQuality.js.map +1 -1
  325. package/lib/components/shared/three/optimization/InstancedGeometry.d.ts.map +1 -1
  326. package/lib/components/shared/three/optimization/LODSystem.d.ts.map +1 -1
  327. package/lib/components/shared/three/scene/AtmosphericParticles3D.d.ts.map +1 -1
  328. package/lib/components/shared/three/scene/AtmosphericParticles3D.js.map +1 -1
  329. package/lib/components/shared/three/scene/BackgroundScene3D.d.ts.map +1 -1
  330. package/lib/components/shared/three/scene/BackgroundScene3D.js.map +1 -1
  331. package/lib/components/shared/three/scene/CombatArena3D.d.ts.map +1 -1
  332. package/lib/components/shared/three/scene/CombatArena3D.js.map +1 -1
  333. package/lib/components/shared/three/scene/DebugCollision.d.ts +0 -2
  334. package/lib/components/shared/three/scene/DebugCollision.d.ts.map +1 -1
  335. package/lib/components/shared/three/scene/KoreanSignage3D.d.ts.map +1 -1
  336. package/lib/components/shared/three/scene/KoreanSignage3D.js.map +1 -1
  337. package/lib/components/shared/three/ui/ArchetypeCard.d.ts.map +1 -1
  338. package/lib/components/shared/three/ui/ArchetypeCard.js.map +1 -1
  339. package/lib/components/shared/three/ui/BodyPartHealthDisplay.d.ts.map +1 -1
  340. package/lib/components/shared/three/ui/BodyPartHealthDisplay.js.map +1 -1
  341. package/lib/components/shared/three/ui/BreathingIndicator.d.ts.map +1 -1
  342. package/lib/components/shared/three/ui/BreathingIndicator2.js.map +1 -1
  343. package/lib/components/shared/three/ui/CombatReadinessBar.d.ts.map +1 -1
  344. package/lib/components/shared/three/ui/CombatReadinessBar.js.map +1 -1
  345. package/lib/components/shared/three/ui/ComboCounter.d.ts.map +1 -1
  346. package/lib/components/shared/three/ui/ComboCounter.js.map +1 -1
  347. package/lib/components/shared/three/ui/HealthBar.d.ts.map +1 -1
  348. package/lib/components/shared/three/ui/HealthBar.js.map +1 -1
  349. package/lib/components/shared/three/ui/KoreanButton.d.ts.map +1 -1
  350. package/lib/components/shared/three/ui/KoreanButton.js.map +1 -1
  351. package/lib/components/shared/three/ui/KoreanPanel.d.ts.map +1 -1
  352. package/lib/components/shared/three/ui/KoreanPanel.js.map +1 -1
  353. package/lib/components/shared/three/ui/KoreanText.d.ts.map +1 -1
  354. package/lib/components/shared/three/ui/KoreanText.js.map +1 -1
  355. package/lib/components/shared/three/ui/MenuList.d.ts.map +1 -1
  356. package/lib/components/shared/three/ui/MenuList.js.map +1 -1
  357. package/lib/components/shared/three/ui/PlayerHUD.d.ts.map +1 -1
  358. package/lib/components/shared/three/ui/PlayerHUD.js.map +1 -1
  359. package/lib/components/shared/three/ui/ProgressBar.d.ts.map +1 -1
  360. package/lib/components/shared/three/ui/ProgressBar.js.map +1 -1
  361. package/lib/components/shared/three/ui/SpeedIndicatorHUD.d.ts +0 -1
  362. package/lib/components/shared/three/ui/SpeedIndicatorHUD.d.ts.map +1 -1
  363. package/lib/components/shared/three/ui/SpeedIndicatorHUD.js +0 -1
  364. package/lib/components/shared/three/ui/SpeedIndicatorHUD.js.map +1 -1
  365. package/lib/components/shared/three/ui/StaminaBar.d.ts.map +1 -1
  366. package/lib/components/shared/three/ui/StaminaBar.js.map +1 -1
  367. package/lib/components/shared/three/ui/TechniqueBar.d.ts.map +1 -1
  368. package/lib/components/shared/three/ui/TechniqueBar.js.map +1 -1
  369. package/lib/components/shared/three/ui/TechniqueBarContainer.d.ts.map +1 -1
  370. package/lib/components/shared/three/ui/TechniqueCard.d.ts.map +1 -1
  371. package/lib/components/shared/three/ui/TechniqueCard.js.map +1 -1
  372. package/lib/components/shared/three/ui/VitalPointOverlayControlsHtml.d.ts.map +1 -1
  373. package/lib/components/shared/three/ui/VitalPointOverlayControlsHtml.js.map +1 -1
  374. package/lib/components/shared/three/ui/VulnerabilityWindowHUD.d.ts.map +1 -1
  375. package/lib/components/shared/ui/BaseHUDContainer.d.ts.map +1 -1
  376. package/lib/components/shared/ui/BaseHUDContainer.js.map +1 -1
  377. package/lib/components/shared/ui/CombatTimer.d.ts.map +1 -1
  378. package/lib/components/shared/ui/CombatTimer.js.map +1 -1
  379. package/lib/components/shared/ui/ErrorBoundary.d.ts.map +1 -1
  380. package/lib/components/shared/ui/ErrorModal.d.ts.map +1 -1
  381. package/lib/components/shared/ui/ErrorModal.js.map +1 -1
  382. package/lib/components/shared/ui/HUDSection.d.ts.map +1 -1
  383. package/lib/components/shared/ui/LoadingState.d.ts.map +1 -1
  384. package/lib/components/shared/ui/LoadingState.js.map +1 -1
  385. package/lib/components/shared/ui/MobileHUDLayout.d.ts +0 -1
  386. package/lib/components/shared/ui/MobileHUDLayout.d.ts.map +1 -1
  387. package/lib/components/shared/ui/ResponsiveContainer.d.ts +0 -1
  388. package/lib/components/shared/ui/ResponsiveContainer.d.ts.map +1 -1
  389. package/lib/components/shared/ui/SplashScreen.d.ts.map +1 -1
  390. package/lib/components/shared/ui/SplashScreen.js +2 -2
  391. package/lib/components/shared/ui/SplashScreen.js.map +1 -1
  392. package/lib/components/shared/ui/StyledHUDPanel.d.ts.map +1 -1
  393. package/lib/components/shared/ui/VitalPointOverlayControlsPure.d.ts.map +1 -1
  394. package/lib/components/shared/ui/VitalPointOverlayControlsPure.js.map +1 -1
  395. package/lib/components/shared/ui/VolumeControl.d.ts.map +1 -1
  396. package/lib/components/shared/ui/VolumeControl.js.map +1 -1
  397. package/lib/components/shared/ui/shared/ConfirmDialog.d.ts.map +1 -1
  398. package/lib/components/shared/ui/shared/ConfirmDialog.js.map +1 -1
  399. package/lib/components/test/Hello3D.d.ts.map +1 -1
  400. package/lib/components/ui/combat/BalanceIndicatorOverlayHtml.d.ts.map +1 -1
  401. package/lib/components/ui/combat/BalanceIndicatorOverlayHtml.js.map +1 -1
  402. package/lib/components/ui/combat/ComboCounter.d.ts.map +1 -1
  403. package/lib/components/ui/combat/PressureMeter.d.ts.map +1 -1
  404. package/lib/systems/CombatSystem.d.ts +0 -6
  405. package/lib/systems/CombatSystem.d.ts.map +1 -1
  406. package/lib/systems/CombatSystem.js +0 -6
  407. package/lib/systems/CombatSystem.js.map +1 -1
  408. package/lib/systems/EffectCalculator.d.ts +0 -7
  409. package/lib/systems/EffectCalculator.d.ts.map +1 -1
  410. package/lib/systems/EffectCalculator.js +0 -4
  411. package/lib/systems/EffectCalculator.js.map +1 -1
  412. package/lib/systems/LayoutSystem.d.ts +0 -1
  413. package/lib/systems/LayoutSystem.d.ts.map +1 -1
  414. package/lib/systems/LayoutSystem.js +0 -1
  415. package/lib/systems/LayoutSystem.js.map +1 -1
  416. package/lib/systems/PlayerEffectManager.d.ts +0 -10
  417. package/lib/systems/PlayerEffectManager.d.ts.map +1 -1
  418. package/lib/systems/PlayerEffectManager.js +0 -3
  419. package/lib/systems/PlayerEffectManager.js.map +1 -1
  420. package/lib/systems/ResponsiveScaling.d.ts +0 -12
  421. package/lib/systems/ResponsiveScaling.d.ts.map +1 -1
  422. package/lib/systems/ResponsiveScaling.js +0 -12
  423. package/lib/systems/ResponsiveScaling.js.map +1 -1
  424. package/lib/systems/TrigramSystem.d.ts +0 -13
  425. package/lib/systems/TrigramSystem.d.ts.map +1 -1
  426. package/lib/systems/TrigramSystem.js +0 -13
  427. package/lib/systems/TrigramSystem.js.map +1 -1
  428. package/lib/systems/VitalPointSystem.d.ts +0 -10
  429. package/lib/systems/VitalPointSystem.d.ts.map +1 -1
  430. package/lib/systems/VitalPointSystem.js +0 -10
  431. package/lib/systems/VitalPointSystem.js.map +1 -1
  432. package/lib/systems/animation/builders/KeyframeInterpolation.d.ts +0 -4
  433. package/lib/systems/animation/builders/KeyframeInterpolation.d.ts.map +1 -1
  434. package/lib/systems/animation/builders/KeyframeInterpolation.js +0 -1
  435. package/lib/systems/animation/builders/KeyframeInterpolation.js.map +1 -1
  436. package/lib/systems/animation/builders/SkeletonRig.d.ts +0 -4
  437. package/lib/systems/animation/builders/SkeletonRig.d.ts.map +1 -1
  438. package/lib/systems/animation/builders/SkeletonRig.js +0 -3
  439. package/lib/systems/animation/builders/SkeletonRig.js.map +1 -1
  440. package/lib/systems/animation/catalogs/RecoveryAnimations.d.ts +0 -5
  441. package/lib/systems/animation/catalogs/RecoveryAnimations.d.ts.map +1 -1
  442. package/lib/systems/animation/catalogs/RecoveryAnimations.js +0 -5
  443. package/lib/systems/animation/catalogs/RecoveryAnimations.js.map +1 -1
  444. package/lib/systems/animation/core/AnimationHitTiming.d.ts +0 -6
  445. package/lib/systems/animation/core/AnimationHitTiming.d.ts.map +1 -1
  446. package/lib/systems/animation/core/AnimationHitTiming.js +0 -4
  447. package/lib/systems/animation/core/AnimationHitTiming.js.map +1 -1
  448. package/lib/systems/animation/core/AnimationStateMachine.js +1 -0
  449. package/lib/systems/animation/core/AnimationStateMachine.js.map +1 -1
  450. package/lib/systems/animation/core/AnimationTransitions.d.ts +0 -3
  451. package/lib/systems/animation/core/AnimationTransitions.d.ts.map +1 -1
  452. package/lib/systems/animation/core/AnimationTransitions.js.map +1 -1
  453. package/lib/systems/animation/core/LateralityTransform.d.ts +0 -3
  454. package/lib/systems/animation/core/LateralityTransform.d.ts.map +1 -1
  455. package/lib/systems/animation/core/LateralityTransform.js +0 -1
  456. package/lib/systems/animation/core/LateralityTransform.js.map +1 -1
  457. package/lib/systems/animation/core/RecoveryPhaseEnhancer.d.ts +0 -1
  458. package/lib/systems/animation/core/RecoveryPhaseEnhancer.d.ts.map +1 -1
  459. package/lib/systems/animation/core/RecoveryPhaseEnhancer.js.map +1 -1
  460. package/lib/systems/animation/core/TechniqueAnimationMapper.d.ts +0 -10
  461. package/lib/systems/animation/core/TechniqueAnimationMapper.d.ts.map +1 -1
  462. package/lib/systems/animation/core/TechniqueAnimationMapper.js +0 -8
  463. package/lib/systems/animation/core/TechniqueAnimationMapper.js.map +1 -1
  464. package/lib/systems/animation/core/TrigramAnimationMapping.d.ts +0 -10
  465. package/lib/systems/animation/core/TrigramAnimationMapping.d.ts.map +1 -1
  466. package/lib/systems/animation/core/TrigramStanceTransitions.d.ts +0 -2
  467. package/lib/systems/animation/core/TrigramStanceTransitions.d.ts.map +1 -1
  468. package/lib/systems/animation/core/types.d.ts +0 -39
  469. package/lib/systems/animation/core/types.d.ts.map +1 -1
  470. package/lib/systems/animation/core/types.js +0 -9
  471. package/lib/systems/animation/core/types.js.map +1 -1
  472. package/lib/systems/animation/systems/AdvancedJointMovements.d.ts +0 -27
  473. package/lib/systems/animation/systems/AdvancedJointMovements.d.ts.map +1 -1
  474. package/lib/systems/animation/systems/AdvancedJointMovements.js +0 -1
  475. package/lib/systems/animation/systems/AdvancedJointMovements.js.map +1 -1
  476. package/lib/systems/animation/systems/BodyFacingSystem.d.ts +0 -19
  477. package/lib/systems/animation/systems/BodyFacingSystem.d.ts.map +1 -1
  478. package/lib/systems/animation/systems/BodyFacingSystem.js +0 -14
  479. package/lib/systems/animation/systems/BodyFacingSystem.js.map +1 -1
  480. package/lib/systems/animation/systems/FacialExpressions.d.ts +0 -10
  481. package/lib/systems/animation/systems/FacialExpressions.d.ts.map +1 -1
  482. package/lib/systems/animation/systems/FacialExpressions.js +0 -2
  483. package/lib/systems/animation/systems/FacialExpressions.js.map +1 -1
  484. package/lib/systems/animation/systems/FallAnimations.d.ts +0 -4
  485. package/lib/systems/animation/systems/FallAnimations.d.ts.map +1 -1
  486. package/lib/systems/animation/systems/FallAnimations.js +0 -2
  487. package/lib/systems/animation/systems/FallAnimations.js.map +1 -1
  488. package/lib/systems/animation/systems/HeadMovements.d.ts +0 -10
  489. package/lib/systems/animation/systems/HeadMovements.d.ts.map +1 -1
  490. package/lib/systems/bodypart/BodyPartDamageIntegration.d.ts +0 -7
  491. package/lib/systems/bodypart/BodyPartDamageIntegration.d.ts.map +1 -1
  492. package/lib/systems/bodypart/BodyPartDamageIntegration.js +0 -7
  493. package/lib/systems/bodypart/BodyPartDamageIntegration.js.map +1 -1
  494. package/lib/systems/bodypart/BodyPartHealthSystem.d.ts +0 -13
  495. package/lib/systems/bodypart/BodyPartHealthSystem.d.ts.map +1 -1
  496. package/lib/systems/bodypart/BodyPartHealthSystem.js +0 -13
  497. package/lib/systems/bodypart/BodyPartHealthSystem.js.map +1 -1
  498. package/lib/systems/bodypart/BodyPartPositionMapping.d.ts +0 -6
  499. package/lib/systems/bodypart/BodyPartPositionMapping.d.ts.map +1 -1
  500. package/lib/systems/bodypart/BodyPartPositionMapping.js +0 -6
  501. package/lib/systems/bodypart/BodyPartPositionMapping.js.map +1 -1
  502. package/lib/systems/bodypart/CombatInjuryIntegration.d.ts +0 -10
  503. package/lib/systems/bodypart/CombatInjuryIntegration.d.ts.map +1 -1
  504. package/lib/systems/bodypart/CombatInjuryIntegration.js +0 -8
  505. package/lib/systems/bodypart/CombatInjuryIntegration.js.map +1 -1
  506. package/lib/systems/bodypart/InjuryIntegration.d.ts +0 -2
  507. package/lib/systems/bodypart/InjuryIntegration.d.ts.map +1 -1
  508. package/lib/systems/bodypart/InjuryIntegration.js +0 -2
  509. package/lib/systems/bodypart/InjuryIntegration.js.map +1 -1
  510. package/lib/systems/bodypart/InjuryTracker.d.ts +0 -14
  511. package/lib/systems/bodypart/InjuryTracker.d.ts.map +1 -1
  512. package/lib/systems/bodypart/InjuryTracker.js +0 -12
  513. package/lib/systems/bodypart/InjuryTracker.js.map +1 -1
  514. package/lib/systems/bodypart/MovementPenaltySystem.d.ts +0 -8
  515. package/lib/systems/bodypart/MovementPenaltySystem.d.ts.map +1 -1
  516. package/lib/systems/bodypart/MovementPenaltySystem.js +0 -8
  517. package/lib/systems/bodypart/MovementPenaltySystem.js.map +1 -1
  518. package/lib/systems/bodypart/PlayerInjuryTrackingManager.d.ts +0 -8
  519. package/lib/systems/bodypart/PlayerInjuryTrackingManager.d.ts.map +1 -1
  520. package/lib/systems/bodypart/PlayerInjuryTrackingManager.js +0 -8
  521. package/lib/systems/bodypart/PlayerInjuryTrackingManager.js.map +1 -1
  522. package/lib/systems/bodypart/types.d.ts +0 -13
  523. package/lib/systems/bodypart/types.d.ts.map +1 -1
  524. package/lib/systems/bodypart/types.js +0 -5
  525. package/lib/systems/bodypart/types.js.map +1 -1
  526. package/lib/systems/breathing/BreathingDisruptionSystem.d.ts +0 -3
  527. package/lib/systems/breathing/BreathingDisruptionSystem.d.ts.map +1 -1
  528. package/lib/systems/breathing/BreathingDisruptionSystem.js +0 -2
  529. package/lib/systems/breathing/BreathingDisruptionSystem.js.map +1 -1
  530. package/lib/systems/combat/BalanceSystem.d.ts +0 -25
  531. package/lib/systems/combat/BalanceSystem.d.ts.map +1 -1
  532. package/lib/systems/combat/BalanceSystem.js +0 -25
  533. package/lib/systems/combat/BalanceSystem.js.map +1 -1
  534. package/lib/systems/combat/BreakingStatusEffects.d.ts +0 -4
  535. package/lib/systems/combat/BreakingStatusEffects.d.ts.map +1 -1
  536. package/lib/systems/combat/BreakingStatusEffects.js +0 -3
  537. package/lib/systems/combat/BreakingStatusEffects.js.map +1 -1
  538. package/lib/systems/combat/CombatStateSystem.d.ts +0 -9
  539. package/lib/systems/combat/CombatStateSystem.d.ts.map +1 -1
  540. package/lib/systems/combat/CombatStateSystem.js +0 -9
  541. package/lib/systems/combat/CombatStateSystem.js.map +1 -1
  542. package/lib/systems/combat/ConsciousnessSystem.d.ts +0 -16
  543. package/lib/systems/combat/ConsciousnessSystem.d.ts.map +1 -1
  544. package/lib/systems/combat/ConsciousnessSystem.js +0 -16
  545. package/lib/systems/combat/ConsciousnessSystem.js.map +1 -1
  546. package/lib/systems/combat/FallIntegration.d.ts +0 -3
  547. package/lib/systems/combat/FallIntegration.d.ts.map +1 -1
  548. package/lib/systems/combat/FallIntegration.js +0 -3
  549. package/lib/systems/combat/FallIntegration.js.map +1 -1
  550. package/lib/systems/combat/GrappleSystem.d.ts +0 -2
  551. package/lib/systems/combat/GrappleSystem.d.ts.map +1 -1
  552. package/lib/systems/combat/GrappleSystem.js +0 -2
  553. package/lib/systems/combat/GrappleSystem.js.map +1 -1
  554. package/lib/systems/combat/LimbExposureSystem.d.ts +0 -7
  555. package/lib/systems/combat/LimbExposureSystem.d.ts.map +1 -1
  556. package/lib/systems/combat/LimbExposureSystem.js +0 -7
  557. package/lib/systems/combat/LimbExposureSystem.js.map +1 -1
  558. package/lib/systems/combat/PainResponseSystem.d.ts +0 -11
  559. package/lib/systems/combat/PainResponseSystem.d.ts.map +1 -1
  560. package/lib/systems/combat/PainResponseSystem.js +0 -11
  561. package/lib/systems/combat/PainResponseSystem.js.map +1 -1
  562. package/lib/systems/combat/painConsciousnessUtils.d.ts +0 -7
  563. package/lib/systems/combat/painConsciousnessUtils.d.ts.map +1 -1
  564. package/lib/systems/combat/painConsciousnessUtils.js +0 -7
  565. package/lib/systems/combat/painConsciousnessUtils.js.map +1 -1
  566. package/lib/systems/effects.d.ts +11 -0
  567. package/lib/systems/effects.d.ts.map +1 -1
  568. package/lib/systems/effects.js +10 -0
  569. package/lib/systems/effects.js.map +1 -1
  570. package/lib/systems/game.d.ts +16 -0
  571. package/lib/systems/game.d.ts.map +1 -1
  572. package/lib/systems/game.js +1 -0
  573. package/lib/systems/game.js.map +1 -1
  574. package/lib/systems/index.d.ts +5 -1
  575. package/lib/systems/index.d.ts.map +1 -1
  576. package/lib/systems/index.js.map +1 -1
  577. package/lib/systems/movement/InjuryMovementModifier.d.ts +0 -10
  578. package/lib/systems/movement/InjuryMovementModifier.d.ts.map +1 -1
  579. package/lib/systems/movement/InjuryMovementModifier.js +0 -7
  580. package/lib/systems/movement/InjuryMovementModifier.js.map +1 -1
  581. package/lib/systems/movement/integration.d.ts +0 -3
  582. package/lib/systems/movement/integration.d.ts.map +1 -1
  583. package/lib/systems/movement/integration.js +0 -3
  584. package/lib/systems/movement/integration.js.map +1 -1
  585. package/lib/systems/physics/AttackMovementPhysics.d.ts +0 -9
  586. package/lib/systems/physics/AttackMovementPhysics.d.ts.map +1 -1
  587. package/lib/systems/physics/AttackMovementPhysics.js +0 -7
  588. package/lib/systems/physics/AttackMovementPhysics.js.map +1 -1
  589. package/lib/systems/physics/CollisionDetection.d.ts +0 -6
  590. package/lib/systems/physics/CollisionDetection.d.ts.map +1 -1
  591. package/lib/systems/physics/CollisionDetection.js +0 -6
  592. package/lib/systems/physics/CollisionDetection.js.map +1 -1
  593. package/lib/systems/physics/CoordinateMapper.d.ts +0 -1
  594. package/lib/systems/physics/CoordinateMapper.d.ts.map +1 -1
  595. package/lib/systems/physics/CoordinateMapper.js +0 -1
  596. package/lib/systems/physics/CoordinateMapper.js.map +1 -1
  597. package/lib/systems/physics/KnockbackPhysics.d.ts +0 -11
  598. package/lib/systems/physics/KnockbackPhysics.d.ts.map +1 -1
  599. package/lib/systems/physics/KnockbackPhysics.js +0 -8
  600. package/lib/systems/physics/KnockbackPhysics.js.map +1 -1
  601. package/lib/systems/physics/MovementPhysics.d.ts +0 -10
  602. package/lib/systems/physics/MovementPhysics.d.ts.map +1 -1
  603. package/lib/systems/physics/MovementPhysics.js +0 -8
  604. package/lib/systems/physics/MovementPhysics.js.map +1 -1
  605. package/lib/systems/physics/PhysicalReachCalculator.d.ts +0 -6
  606. package/lib/systems/physics/PhysicalReachCalculator.d.ts.map +1 -1
  607. package/lib/systems/physics/PhysicalReachCalculator.js +0 -5
  608. package/lib/systems/physics/PhysicalReachCalculator.js.map +1 -1
  609. package/lib/systems/physics/SpeedModifierSystem.d.ts +0 -5
  610. package/lib/systems/physics/SpeedModifierSystem.d.ts.map +1 -1
  611. package/lib/systems/physics/SpeedModifierSystem.js +0 -4
  612. package/lib/systems/physics/SpeedModifierSystem.js.map +1 -1
  613. package/lib/systems/player.d.ts +0 -5
  614. package/lib/systems/player.d.ts.map +1 -1
  615. package/lib/systems/trigram/TrigramCalculator.d.ts +0 -1
  616. package/lib/systems/trigram/TrigramCalculator.d.ts.map +1 -1
  617. package/lib/systems/trigram/TrigramCalculator.js +0 -1
  618. package/lib/systems/trigram/TrigramCalculator.js.map +1 -1
  619. package/lib/systems/trigram/types.d.ts +0 -4
  620. package/lib/systems/trigram/types.d.ts.map +1 -1
  621. package/lib/systems/trigram/types.js +0 -2
  622. package/lib/systems/trigram/types.js.map +1 -1
  623. package/lib/systems/types.d.ts +7 -2
  624. package/lib/systems/types.d.ts.map +1 -1
  625. package/lib/systems/types.js.map +1 -1
  626. package/lib/systems/vitalpoint/DamageCalculator.d.ts +0 -3
  627. package/lib/systems/vitalpoint/DamageCalculator.d.ts.map +1 -1
  628. package/lib/systems/vitalpoint/DamageCalculator.js +0 -3
  629. package/lib/systems/vitalpoint/DamageCalculator.js.map +1 -1
  630. package/lib/systems/vitalpoint/KoreanVitalPoints.d.ts +0 -8
  631. package/lib/systems/vitalpoint/KoreanVitalPoints.d.ts.map +1 -1
  632. package/lib/systems/vitalpoint/KoreanVitalPoints.js +0 -8
  633. package/lib/systems/vitalpoint/KoreanVitalPoints.js.map +1 -1
  634. package/lib/systems/vitalpoint/VitalPointsData.d.ts +0 -3
  635. package/lib/systems/vitalpoint/VitalPointsData.d.ts.map +1 -1
  636. package/lib/systems/vitalpoint/VitalPointsData.js +0 -1
  637. package/lib/systems/vitalpoint/VitalPointsData.js.map +1 -1
  638. package/lib/types/PhysicsTypes.d.ts +21 -78
  639. package/lib/types/PhysicsTypes.d.ts.map +1 -1
  640. package/lib/types/PhysicsTypes.js +17 -63
  641. package/lib/types/PhysicsTypes.js.map +1 -1
  642. package/lib/types/clothing.d.ts +0 -9
  643. package/lib/types/clothing.d.ts.map +1 -1
  644. package/lib/types/constants/animations.d.ts +35 -1
  645. package/lib/types/constants/animations.d.ts.map +1 -1
  646. package/lib/types/constants/animations.js +12 -1
  647. package/lib/types/constants/animations.js.map +1 -1
  648. package/lib/types/constants/colors.d.ts +28 -2
  649. package/lib/types/constants/colors.d.ts.map +1 -1
  650. package/lib/types/constants/colors.js +30 -4
  651. package/lib/types/constants/colors.js.map +1 -1
  652. package/lib/types/constants/index.d.ts +5 -1
  653. package/lib/types/constants/index.d.ts.map +1 -1
  654. package/lib/types/constants/index.js.map +1 -1
  655. package/lib/types/constants/performance.d.ts +0 -2
  656. package/lib/types/constants/performance.d.ts.map +1 -1
  657. package/lib/types/constants/performance.js +0 -2
  658. package/lib/types/constants/performance.js.map +1 -1
  659. package/lib/types/constants/typography.d.ts +40 -2
  660. package/lib/types/constants/typography.d.ts.map +1 -1
  661. package/lib/types/constants/typography.js +40 -2
  662. package/lib/types/constants/typography.js.map +1 -1
  663. package/lib/types/constants/ui.d.ts +89 -1
  664. package/lib/types/constants/ui.d.ts.map +1 -1
  665. package/lib/types/constants/ui.js +33 -1
  666. package/lib/types/constants/ui.js.map +1 -1
  667. package/lib/types/facial.d.ts +0 -15
  668. package/lib/types/facial.d.ts.map +1 -1
  669. package/lib/types/facial.js +0 -8
  670. package/lib/types/facial.js.map +1 -1
  671. package/lib/types/hand-animation.d.ts +34 -147
  672. package/lib/types/hand-animation.d.ts.map +1 -1
  673. package/lib/types/hand-animation.js +0 -2
  674. package/lib/types/hand-animation.js.map +1 -1
  675. package/lib/types/injury.d.ts +0 -2
  676. package/lib/types/injury.d.ts.map +1 -1
  677. package/lib/types/injury.js +0 -1
  678. package/lib/types/injury.js.map +1 -1
  679. package/lib/types/physics.d.ts +0 -21
  680. package/lib/types/physics.d.ts.map +1 -1
  681. package/lib/types/physics.js +0 -6
  682. package/lib/types/physics.js.map +1 -1
  683. package/lib/types/physicsConstants.d.ts +0 -12
  684. package/lib/types/physicsConstants.d.ts.map +1 -1
  685. package/lib/types/physicsConstants.js +0 -12
  686. package/lib/types/physicsConstants.js.map +1 -1
  687. package/lib/types/player-visual.d.ts +45 -189
  688. package/lib/types/player-visual.d.ts.map +1 -1
  689. package/lib/types/technique.d.ts +1 -5
  690. package/lib/types/technique.d.ts.map +1 -1
  691. package/lib/types/techniqueId.d.ts +0 -1
  692. package/lib/types/techniqueId.d.ts.map +1 -1
  693. package/lib/types/techniqueId.js +0 -1
  694. package/lib/types/techniqueId.js.map +1 -1
  695. package/lib/utils/arenaWorldDimensions.d.ts +0 -11
  696. package/lib/utils/arenaWorldDimensions.d.ts.map +1 -1
  697. package/lib/utils/arenaWorldDimensions.js +0 -6
  698. package/lib/utils/arenaWorldDimensions.js.map +1 -1
  699. package/lib/utils/controlMapping.d.ts +3 -4
  700. package/lib/utils/controlMapping.d.ts.map +1 -1
  701. package/lib/utils/controlMapping.js +1 -2
  702. package/lib/utils/controlMapping.js.map +1 -1
  703. package/lib/utils/deviceDetection.d.ts +0 -5
  704. package/lib/utils/deviceDetection.d.ts.map +1 -1
  705. package/lib/utils/deviceDetection.js +0 -5
  706. package/lib/utils/deviceDetection.js.map +1 -1
  707. package/lib/utils/hapticFeedback.d.ts +23 -95
  708. package/lib/utils/hapticFeedback.d.ts.map +1 -1
  709. package/lib/utils/hapticFeedback.js +9 -39
  710. package/lib/utils/hapticFeedback.js.map +1 -1
  711. package/lib/utils/haptics.d.ts +0 -3
  712. package/lib/utils/haptics.d.ts.map +1 -1
  713. package/lib/utils/haptics.js +0 -1
  714. package/lib/utils/haptics.js.map +1 -1
  715. package/lib/utils/math.d.ts +0 -3
  716. package/lib/utils/math.d.ts.map +1 -1
  717. package/lib/utils/math.js +0 -2
  718. package/lib/utils/math.js.map +1 -1
  719. package/lib/utils/mobileLayoutHelpers.d.ts +0 -3
  720. package/lib/utils/mobileLayoutHelpers.d.ts.map +1 -1
  721. package/lib/utils/mobileLayoutHelpers.js +0 -1
  722. package/lib/utils/mobileLayoutHelpers.js.map +1 -1
  723. package/lib/utils/mobileUIUtils.d.ts +5 -100
  724. package/lib/utils/mobileUIUtils.d.ts.map +1 -1
  725. package/lib/utils/mobileUIUtils.js +0 -9
  726. package/lib/utils/mobileUIUtils.js.map +1 -1
  727. package/lib/utils/physicalAttributeValidation.d.ts.map +1 -1
  728. package/lib/utils/player3DHelpers.d.ts.map +1 -1
  729. package/lib/utils/player3DHelpers.js.map +1 -1
  730. package/lib/utils/responsiveLayoutHelpers.d.ts +0 -65
  731. package/lib/utils/responsiveLayoutHelpers.d.ts.map +1 -1
  732. package/lib/utils/responsiveLayoutHelpers.js +0 -65
  733. package/lib/utils/responsiveLayoutHelpers.js.map +1 -1
  734. package/lib/utils/responsiveOrientationConstants.d.ts +0 -7
  735. package/lib/utils/responsiveOrientationConstants.d.ts.map +1 -1
  736. package/lib/utils/responsiveOrientationConstants.js +0 -7
  737. package/lib/utils/responsiveOrientationConstants.js.map +1 -1
  738. package/lib/utils/safeAreaUtils.d.ts +0 -6
  739. package/lib/utils/safeAreaUtils.d.ts.map +1 -1
  740. package/lib/utils/safeAreaUtils.js +0 -2
  741. package/lib/utils/safeAreaUtils.js.map +1 -1
  742. package/lib/utils/sharedPhysicsConfig.d.ts +0 -4
  743. package/lib/utils/sharedPhysicsConfig.d.ts.map +1 -1
  744. package/lib/utils/sharedPhysicsConfig.js +0 -2
  745. package/lib/utils/sharedPhysicsConfig.js.map +1 -1
  746. package/lib/utils/skeletonScaling.d.ts +0 -9
  747. package/lib/utils/skeletonScaling.d.ts.map +1 -1
  748. package/lib/utils/skeletonScaling.js +0 -1
  749. package/lib/utils/skeletonScaling.js.map +1 -1
  750. package/package.json +11 -11
@@ -1 +1 @@
1
- {"version":3,"file":"AdvancedJointMovements.js","names":[],"sources":["../../../../src/systems/animation/systems/AdvancedJointMovements.ts"],"sourcesContent":["/**\n * Advanced Joint Movement System for Korean Martial Arts\n * \n * Extends the base skeletal animation system with specialized joint movements\n * for authentic martial arts technique execution:\n * - Hip rotation for kicks (고관절 회전)\n * - Shoulder elevation/depression (어깨 들어올림)\n * - Ankle articulation (발목 관절)\n * - Wrist snap mechanics (손목 스냅)\n * - Knee drive positioning (무릎 밀어올림)\n * - Spinal flexion/extension (척추 굽힘)\n * \n * @module systems/animation/AdvancedJointMovements\n * @category Animation System\n * @korean 고급관절동작시스템\n */\n\nimport * as THREE from \"three\";\n\n/**\n * Body side for limb-specific movements\n * \n * @public\n * @korean 신체측면\n */\nexport type BodySide = 'left' | 'right';\n\n/**\n * Kick technique types for hip rotation calculation\n * \n * Korean terminology:\n * - front: 앞차기 (Apchagi)\n * - roundhouse: 돌려차기 (Dollyeochagi)\n * - side: 옆차기 (Yeopchagi)\n * - hook: 후려차기 (Huryeochagi)\n * - axe: 내려차기 (Naeryeochagi)\n * \n * @public\n * @korean 차기기술유형\n */\nexport type KickType = 'front' | 'roundhouse' | 'side' | 'hook' | 'axe';\n\n/**\n * Hand strike technique types for wrist snap calculation\n * \n * Korean terminology:\n * - backfist: 등주먹 (Deungjumeok)\n * - knife-hand: 수도 (Sudo)\n * - palm-heel: 장저 (Jangjeo)\n * - ridge-hand: 손날등 (Sonnaldeung)\n * - hammer-fist: 망치주먹 (Mangchijumeok)\n * \n * @public\n * @korean 수격기술유형\n */\nexport type HandStrikeType = 'backfist' | 'knife-hand' | 'palm-heel' | 'ridge-hand' | 'hammer-fist';\n\n/**\n * Kick height levels for hip rotation scaling\n * \n * Korean terminology:\n * - 0: 하단 (Hadan) - Low section\n * - 1: 중단 (Jungdan) - Middle section\n * - 2: 상단 (Sangdan) - High section\n * \n * @public\n * @korean 차기높이\n */\nexport type KickHeight = 0 | 1 | 2;\n\n/**\n * Technique execution phases\n * \n * Korean terminology:\n * - chamber: 준비 (Junbi) - Preparation/chamber\n * - extension: 확장 (Hwakjang) - Extension\n * - retraction: 회수 (Hoesu) - Retraction\n * \n * @public\n * @korean 기술단계\n */\nexport type TechniquePhase = 'chamber' | 'extension' | 'retraction';\n\n/**\n * Strike execution phases\n * \n * Korean terminology:\n * - wind-up: 예비동작 (Yebi Dongjak) - Wind-up\n * - impact: 타격 (Tagyeok) - Impact\n * - follow-through: 후속동작 (Husok Dongjak) - Follow-through\n * \n * @public\n * @korean 타격단계\n */\nexport type StrikePhase = 'wind-up' | 'impact' | 'follow-through';\n\n/**\n * Block and overhead technique types for shoulder elevation\n * \n * Korean terminology:\n * - high-block: 상단막기 (Sangdan Makgi)\n * - overhead-strike: 상단공격 (Sangdan Gonggyeok)\n * - rising-block: 올려막기 (Ollyeo Makgi)\n * - shrug: 어깨올리기 (Eokkae Olligi)\n * - neutral: 중립 (Jungnip)\n * \n * @public\n * @korean 어깨기술유형\n */\nexport type ShoulderTechniqueType = 'high-block' | 'overhead-strike' | 'rising-block' | 'shrug' | 'neutral';\n\n/**\n * Shoulder and block technique execution phases\n * \n * Korean terminology:\n * - preparation: 준비 (Junbi)\n * - execution: 실행 (Silhaeng)\n * - recovery: 복귀 (Bokgwi)\n * \n * @public\n * @korean 어깨단계\n */\nexport type ShoulderPhase = 'preparation' | 'execution' | 'recovery';\n\n/**\n * Spinal movement types for dodging and positioning\n * \n * Korean terminology:\n * - duck: 숙이기 (Sugigi) - Duck down\n * - lean-back: 뒤로기울기 (Dwiro Giulgi) - Lean back\n * - lean-left: 왼쪽기울기 (Oenjjok Giulgi) - Lean left\n * - lean-right: 오른쪽기울기 (Oreunjjok Giulgi) - Lean right\n * - low-attack: 낮은공격 (Najeun Gonggyeok) - Low attack\n * - neutral: 중립 (Jungnip) - Neutral\n * \n * @public\n * @korean 척추동작유형\n */\nexport type SpinalMovementType = 'duck' | 'lean-back' | 'lean-left' | 'lean-right' | 'low-attack' | 'neutral';\n\n/**\n * Knee drive technique types for close-range combat\n * \n * Korean terminology:\n * - knee-strike: 무릎차기 (Mureup Chagi)\n * - clinch-control: 붙잡기제어 (Butjapgi Jeeo)\n * - push-kick: 밀어차기 (Mireo Chagi)\n * - neutral: 중립 (Jungnip)\n * \n * @public\n * @korean 무릎기술유형\n */\nexport type KneeTechniqueType = 'knee-strike' | 'clinch-control' | 'push-kick' | 'neutral';\n\n/**\n * Knee technique execution phases\n * \n * Korean terminology:\n * - wind-up: 예비동작 (Yebi Dongjak)\n * - execution: 실행 (Silhaeng)\n * - recovery: 복귀 (Bokgwi)\n * \n * @public\n * @korean 무릎단계\n */\nexport type KneePhase = 'wind-up' | 'execution' | 'recovery';\n\n/**\n * Hip rotation state for dynamic kick mechanics\n * \n * Tracks independent hip rotation in multiple planes for realistic\n * high kicks, roundhouse kicks, and hook kicks. Separates hip rotation\n * from pelvis rotation for authentic martial arts biomechanics.\n * \n * Korean: 고관절 회전 상태\n * \n * @public\n */\nexport interface HipRotationState {\n /**\n * Frontal plane rotation (abduction/adduction) in radians\n * - Positive: Leg moves away from body centerline (abduction)\n * - Negative: Leg moves toward centerline (adduction)\n * Range: ±1.8 rad (±103°) for high kicks\n * \n * @korean 외전각도\n */\n readonly frontalRotation: number;\n\n /**\n * Sagittal plane rotation (flexion/extension) in radians\n * - Positive: Leg moves forward (flexion)\n * - Negative: Leg moves backward (extension)\n * Range: -1.8 to 1.8 rad for kicks\n * \n * @korean 굴곡각도\n */\n readonly sagittalRotation: number;\n\n /**\n * Transverse plane rotation (internal/external rotation) in radians\n * - Positive: Thigh rotates inward\n * - Negative: Thigh rotates outward\n * Range: ±0.8 rad (±46°)\n * \n * @korean 회전각도\n */\n readonly transverseRotation: number;\n\n /**\n * Which hip (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Shoulder elevation/depression state for blocks and overhead strikes\n * \n * Tracks vertical shoulder movement independent of arm rotation.\n * Essential for authentic blocking mechanics and overhead techniques.\n * \n * Korean: 어깨 들어올림 상태\n * \n * @public\n */\nexport interface ShoulderElevationState {\n /**\n * Vertical displacement in meters\n * - Positive: Shoulder elevated (shrug)\n * - Negative: Shoulder depressed (drop)\n * Range: ±0.05 m (±5cm)\n * \n * @korean 수직변위\n */\n readonly elevation: number;\n\n /**\n * Which shoulder (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Ankle articulation state for kick chambers and pivots\n * \n * Tracks ankle joint positioning crucial for proper kick mechanics\n * and pivoting in Korean martial arts.\n * \n * Korean: 발목 관절 상태\n * \n * @public\n */\nexport interface AnkleArticulationState {\n /**\n * Dorsiflexion/plantarflexion angle in radians\n * - Positive: Toes point up (dorsiflexion)\n * - Negative: Toes point down (plantarflexion)\n * Range: -0.8 to 0.5 rad\n * \n * @korean 발등굽힘각도\n */\n readonly flexion: number;\n\n /**\n * Inversion/eversion angle in radians\n * Range: ±0.4 rad (±23°)\n * \n * @korean 안쪽굽힘각도\n */\n readonly inversion: number;\n\n /**\n * Which ankle (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Wrist snap state for rapid hand strikes\n * \n * Tracks rapid wrist rotation mechanics essential for backfist,\n * knife-hand, and other Korean martial arts hand techniques.\n * \n * Korean: 손목 스냅 상태\n * \n * @public\n */\nexport interface WristSnapState {\n /**\n * Rotation angle in radians\n * Range: ±1.5 rad (±86°)\n * \n * @korean 회전각도\n */\n readonly rotation: number;\n\n /**\n * Snap velocity in rad/s (for power calculation)\n * @korean 회전속도\n */\n readonly velocity: number;\n\n /**\n * Which wrist (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Knee drive state for clinch work and knee strikes\n * \n * Tracks independent knee positioning crucial for close-range\n * combat and knee strike techniques.\n * \n * Korean: 무릎 밀어올림 상태\n * \n * @public\n */\nexport interface KneeDriveState {\n /**\n * Drive height in meters (vertical displacement)\n * Range: 0 to 0.8 m (80cm max lift)\n * \n * @korean 들어올림높이\n */\n readonly height: number;\n\n /**\n * Forward drive distance in meters\n * Range: 0 to 0.3 m (30cm)\n * \n * @korean 전방거리\n */\n readonly forward: number;\n\n /**\n * Which knee (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Spinal flexion/extension state for dodges and low attacks\n * \n * Tracks forward/backward bending of spine for defensive\n * movements and low attack positioning.\n * \n * Korean: 척추 굽힘 상태\n * \n * @public\n */\nexport interface SpinalFlexionState {\n /**\n * Flexion angle in radians (forward/backward bend)\n * - Positive: Forward bend\n * - Negative: Backward bend\n * Range: -0.5 to 0.8 rad\n * \n * @korean 굽힘각도\n */\n readonly flexion: number;\n\n /**\n * Lateral bend in radians (side to side)\n * Range: ±0.3 rad (±17°)\n * \n * @korean 측면굽힘각도\n */\n readonly lateralBend: number;\n}\n\n/**\n * Advanced joint movement constraints\n * \n * Defines anatomically correct limits for all advanced joint movements\n * based on human biomechanics and Korean martial arts techniques.\n * \n * @korean 고급관절제약조건\n */\nexport const ADVANCED_JOINT_CONSTRAINTS = {\n /**\n * Hip rotation constraints for kicks\n * @korean 고관절제약조건\n */\n HIP_ROTATION: {\n FRONTAL_MIN: -1.8, // -103° adduction\n FRONTAL_MAX: 1.8, // 103° abduction\n SAGITTAL_MIN: -1.8, // -103° extension\n SAGITTAL_MAX: 1.8, // 103° flexion\n TRANSVERSE_MIN: -0.8, // -46° external rotation\n TRANSVERSE_MAX: 0.8, // 46° internal rotation\n },\n\n /**\n * Shoulder elevation constraints\n * @korean 어깨들어올림제약조건\n */\n SHOULDER_ELEVATION: {\n MIN: -0.05, // -5cm depression\n MAX: 0.05, // 5cm elevation\n },\n\n /**\n * Ankle articulation constraints\n * @korean 발목관절제약조건\n */\n ANKLE_ARTICULATION: {\n FLEXION_MIN: -0.8, // -46° plantarflexion\n FLEXION_MAX: 0.5, // 29° dorsiflexion\n INVERSION_MIN: -0.4, // -23° eversion\n INVERSION_MAX: 0.4, // 23° inversion\n },\n\n /**\n * Wrist snap constraints\n * @korean 손목스냅제약조건\n */\n WRIST_SNAP: {\n ROTATION_MIN: -1.5, // -86°\n ROTATION_MAX: 1.5, // 86°\n MAX_VELOCITY: 30.0, // 30 rad/s for power strikes\n },\n\n /**\n * Knee drive constraints\n * @korean 무릎밀어올림제약조건\n */\n KNEE_DRIVE: {\n HEIGHT_MIN: 0, // Ground level\n HEIGHT_MAX: 0.8, // 80cm max lift\n FORWARD_MIN: 0,\n FORWARD_MAX: 0.3, // 30cm forward\n },\n\n /**\n * Spinal flexion constraints\n * @korean 척추굽힘제약조건\n */\n SPINAL_FLEXION: {\n FLEXION_MIN: -0.5, // -29° extension (backward)\n FLEXION_MAX: 0.8, // 46° flexion (forward)\n LATERAL_MIN: -0.3, // -17° left bend\n LATERAL_MAX: 0.3, // 17° right bend\n },\n} as const;\n\n/**\n * Calculate hip rotation for kick mechanics\n * \n * Determines optimal hip rotation angles for various kick types,\n * ensuring anatomically correct positioning and maximum power generation.\n * \n * @param kickType - Type of kick being performed\n * @param targetHeight - Target height for kick (0=low, 1=medium, 2=high)\n * @param side - Which leg is kicking\n * @returns Hip rotation state with all three plane rotations\n * \n * @example\n * ```typescript\n * const hipState = calculateHipRotationForKick('roundhouse', 2, 'right');\n * // Returns frontal: 1.5, sagittal: 1.3, transverse: 0.6 for high roundhouse\n * ```\n * \n * @public\n * @korean 차기용고관절회전계산\n */\nexport function calculateHipRotationForKick(\n kickType: KickType,\n targetHeight: KickHeight,\n side: BodySide\n): HipRotationState {\n let frontalRotation = 0;\n let sagittalRotation = 0;\n let transverseRotation = 0;\n\n // Height multiplier (more rotation needed for higher kicks)\n const heightMultiplier = targetHeight === 0 ? 0.5 : targetHeight === 1 ? 0.75 : 1.0;\n\n switch (kickType) {\n case 'front':\n // Front kick: primarily sagittal plane (forward)\n sagittalRotation = 1.5 * heightMultiplier;\n frontalRotation = 0.2; // Slight abduction for balance\n transverseRotation = 0;\n break;\n\n case 'roundhouse':\n // Roundhouse: combination of frontal abduction and transverse rotation\n frontalRotation = 1.5 * heightMultiplier;\n sagittalRotation = 0.8 * heightMultiplier;\n transverseRotation = 0.6 * heightMultiplier; // Internal rotation for power\n break;\n\n case 'side':\n // Side kick: primarily frontal plane (abduction)\n frontalRotation = 1.6 * heightMultiplier;\n sagittalRotation = 0.3;\n transverseRotation = -0.4; // External rotation for proper foot alignment\n break;\n\n case 'hook':\n // Hook kick: high abduction with forward component\n frontalRotation = 1.7 * heightMultiplier;\n sagittalRotation = 1.2 * heightMultiplier;\n transverseRotation = 0.5;\n break;\n\n case 'axe':\n // Axe kick: maximum sagittal flexion, some abduction\n frontalRotation = 0.8 * heightMultiplier;\n sagittalRotation = 1.8 * heightMultiplier; // Maximum forward flexion\n transverseRotation = 0.2;\n break;\n }\n\n // Apply constraints\n frontalRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MAX, frontalRotation)\n );\n sagittalRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MAX, sagittalRotation)\n );\n transverseRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MAX, transverseRotation)\n );\n\n return {\n frontalRotation,\n sagittalRotation,\n transverseRotation,\n side,\n };\n}\n\n/**\n * Calculate kick power modifier from hip rotation\n * \n * Determines power bonus based on proper hip rotation technique.\n * Greater rotation in the correct planes generates more power.\n * \n * @param hipState - Current hip rotation state\n * @param kickType - Type of kick\n * @returns Power multiplier (1.0-1.40x, with kicks getting up to 40% bonus)\n * \n * @example\n * ```typescript\n * const hipState = calculateHipRotationForKick('roundhouse', 2, 'right');\n * const power = calculateKickPowerFromHipRotation(hipState, 'roundhouse');\n * // Returns ~1.35 for properly executed high roundhouse\n * ```\n * \n * @public\n * @korean 고관절회전에서차기파워계산\n */\nexport function calculateKickPowerFromHipRotation(\n hipState: HipRotationState,\n kickType: KickType\n): number {\n // Normalize rotations to 0-1 range based on constraints\n const normalizedFrontal = Math.abs(hipState.frontalRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MAX;\n const normalizedSagittal = Math.abs(hipState.sagittalRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MAX;\n const normalizedTransverse = Math.abs(hipState.transverseRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MAX;\n\n // Different kicks benefit from different rotation planes\n let powerFactor = 0;\n switch (kickType) {\n case 'front':\n powerFactor = normalizedSagittal * 0.8 + normalizedFrontal * 0.2;\n break;\n case 'roundhouse':\n powerFactor = normalizedFrontal * 0.5 + normalizedTransverse * 0.3 + normalizedSagittal * 0.2;\n break;\n case 'side':\n powerFactor = normalizedFrontal * 0.7 + normalizedTransverse * 0.3;\n break;\n case 'hook':\n powerFactor = normalizedFrontal * 0.4 + normalizedSagittal * 0.4 + normalizedTransverse * 0.2;\n break;\n case 'axe':\n powerFactor = normalizedSagittal * 0.8 + normalizedFrontal * 0.2;\n break;\n }\n\n // Kicks can get up to 40% power bonus from proper hip rotation\n return 1.0 + (powerFactor * 0.40);\n}\n\n/**\n * Apply hip rotation to Three.js Euler angles\n * \n * Converts hip rotation state into Three.js Euler angles for rendering.\n * \n * @param hipState - Hip rotation state\n * @returns Three.js Euler angles (X=sagittal, Y=transverse, Z=frontal)\n * \n * @public\n * @korean 고관절회전을오일러각으로적용\n */\nexport function applyHipRotationToEuler(hipState: HipRotationState): THREE.Euler {\n return new THREE.Euler(\n hipState.sagittalRotation, // X-axis: forward/backward\n hipState.transverseRotation, // Y-axis: twist\n hipState.frontalRotation, // Z-axis: side to side\n 'XYZ'\n );\n}\n\n/**\n * Calculate ankle articulation for kick chamber\n * \n * Determines proper ankle positioning for kick chambering and extension,\n * crucial for proper foot alignment and power transfer in Korean martial arts.\n * \n * @param kickType - Type of kick being chambered\n * @param phase - Kick phase: 'chamber', 'extension', 'retraction'\n * @param side - Which ankle\n * @returns Ankle articulation state with flexion and inversion angles\n * \n * @example\n * ```typescript\n * const ankleState = calculateAnkleArticulation('front', 'extension', 'right');\n * // Returns: { flexion: 0.5, inversion: 0, side: 'right' }\n * ```\n * \n * @public\n * @korean 차기챔버용발목관절계산\n */\nexport function calculateAnkleArticulation(\n kickType: KickType,\n phase: TechniquePhase,\n side: BodySide\n): AnkleArticulationState {\n let flexion = 0;\n let inversion = 0;\n\n switch (kickType) {\n case 'front':\n if (phase === 'chamber') {\n flexion = 0.2; // Slight dorsiflexion in chamber\n } else if (phase === 'extension') {\n flexion = 0.5; // Strong dorsiflexion for striking with ball of foot\n } else {\n flexion = 0.1; // Slight flexion during retraction\n }\n inversion = 0; // Neutral for front kicks\n break;\n\n case 'roundhouse':\n if (phase === 'chamber') {\n flexion = -0.3; // Plantarflexion in chamber\n } else if (phase === 'extension') {\n flexion = -0.5; // Strong plantarflexion for instep strike\n inversion = -0.2; // Slight eversion to align instep\n } else {\n flexion = -0.2;\n inversion = 0;\n }\n break;\n\n case 'side':\n if (phase === 'chamber') {\n flexion = 0.3; // Dorsiflexion in chamber\n } else if (phase === 'extension') {\n flexion = 0.4; // Dorsiflexion for heel/blade strike\n inversion = 0.3; // Inversion to present blade edge\n } else {\n flexion = 0.2;\n inversion = 0.1;\n }\n break;\n\n case 'hook':\n if (phase === 'chamber') {\n flexion = -0.2;\n } else if (phase === 'extension') {\n flexion = -0.4; // Plantarflexion for heel strike\n inversion = -0.15; // Slight eversion\n } else {\n flexion = -0.1;\n inversion = 0;\n }\n break;\n\n case 'axe':\n if (phase === 'chamber') {\n flexion = 0.1; // Minimal flexion in high chamber\n } else if (phase === 'extension') {\n flexion = 0.5; // Strong dorsiflexion for downward strike\n } else {\n flexion = 0.2;\n }\n inversion = 0; // Neutral for axe kicks\n break;\n }\n\n // Apply constraints\n flexion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.FLEXION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.FLEXION_MAX, flexion)\n );\n inversion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.INVERSION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.INVERSION_MAX, inversion)\n );\n\n return { flexion, inversion, side };\n}\n\n/**\n * Calculate wrist snap for hand strikes\n * \n * Determines wrist rotation and velocity for power generation in\n * backfist, knife-hand, and other Korean martial arts hand techniques.\n * \n * @param strikeType - Type of hand strike\n * @param phase - Strike phase: 'wind-up', 'impact', 'follow-through'\n * @param side - Which wrist\n * @returns Wrist snap state with rotation angle and velocity\n * \n * @example\n * ```typescript\n * const wristState = calculateWristSnap('backfist', 'impact', 'right');\n * // Returns: { rotation: 1.2, velocity: 25.0, side: 'right' }\n * ```\n * \n * @public\n * @korean 수격용손목스냅계산\n */\nexport function calculateWristSnap(\n strikeType: HandStrikeType,\n phase: StrikePhase,\n side: BodySide\n): WristSnapState {\n let rotation = 0;\n let velocity = 0;\n\n switch (strikeType) {\n case 'backfist':\n if (phase === 'wind-up') {\n rotation = -0.8; // Cocked back\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 1.2; // Snapped forward\n velocity = 25.0; // High velocity snap\n } else {\n rotation = 0.5;\n velocity = 5.0;\n }\n break;\n\n case 'knife-hand':\n if (phase === 'wind-up') {\n rotation = -0.5;\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.8; // Moderate snap for precision\n velocity = 20.0;\n } else {\n rotation = 0.3;\n velocity = 3.0;\n }\n break;\n\n case 'palm-heel':\n if (phase === 'wind-up') {\n rotation = -0.3; // Minimal wind-up\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.5; // Push through\n velocity = 15.0; // Lower velocity, more push\n } else {\n rotation = 0.2;\n velocity = 2.0;\n }\n break;\n\n case 'ridge-hand':\n if (phase === 'wind-up') {\n rotation = 0.8; // Opposite direction\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = -1.0; // Reverse snap\n velocity = 22.0;\n } else {\n rotation = -0.4;\n velocity = 4.0;\n }\n break;\n\n case 'hammer-fist':\n if (phase === 'wind-up') {\n rotation = 0.2; // Minimal rotation\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.3; // Downward strike, less rotation\n velocity = 18.0;\n } else {\n rotation = 0.1;\n velocity = 2.0;\n }\n break;\n }\n\n // Apply constraints\n rotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MAX, rotation)\n );\n velocity = Math.min(ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.MAX_VELOCITY, Math.abs(velocity));\n\n return { rotation, velocity, side };\n}\n\n/**\n * Calculate wrist snap power modifier\n * \n * Determines power bonus based on wrist snap velocity and rotation.\n * Higher velocity generates more power for whipping strikes.\n * \n * @param wristState - Current wrist snap state\n * @returns Power multiplier (1.0-1.25x, with hand strikes getting up to 25% bonus)\n * \n * @example\n * ```typescript\n * const wristState = calculateWristSnap('backfist', 'impact', 'right');\n * const power = calculateWristSnapPowerModifier(wristState);\n * // Returns ~1.20 for proper backfist snap\n * ```\n * \n * @public\n * @korean 손목스냅파워배율계산\n */\nexport function calculateWristSnapPowerModifier(wristState: WristSnapState): number {\n // Normalize velocity to 0-1 range\n const normalizedVelocity = wristState.velocity / ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.MAX_VELOCITY;\n \n // Normalize rotation magnitude to 0-1 range\n const normalizedRotation = Math.abs(wristState.rotation) / ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MAX;\n \n // Velocity contributes 70%, rotation contributes 30%\n const powerFactor = (normalizedVelocity * 0.7) + (normalizedRotation * 0.3);\n \n // Hand strikes get up to 25% power bonus from wrist snap\n return 1.0 + (powerFactor * 0.25);\n}\n\n/**\n * Calculate shoulder elevation for blocks and overhead strikes\n * \n * Determines vertical shoulder movement for defensive blocks and\n * overhead striking techniques in Korean martial arts.\n * \n * @param techniqueType - Type of technique requiring shoulder movement\n * @param phase - Technique phase\n * @param side - Which shoulder\n * @returns Shoulder elevation state with vertical displacement\n * \n * @example\n * ```typescript\n * const shoulderState = calculateShoulderElevation('high-block', 'execution', 'left');\n * // Returns: { elevation: 0.04, side: 'left' }\n * ```\n * \n * @public\n * @korean 블록및상단공격용어깨들어올림계산\n */\nexport function calculateShoulderElevation(\n techniqueType: ShoulderTechniqueType,\n phase: ShoulderPhase,\n side: BodySide\n): ShoulderElevationState {\n let elevation = 0;\n\n switch (techniqueType) {\n case 'high-block':\n if (phase === 'preparation') {\n elevation = -0.02; // Slight drop before elevation\n } else if (phase === 'execution') {\n elevation = 0.04; // Elevate for high block\n } else {\n elevation = 0.01; // Slight elevation maintained\n }\n break;\n\n case 'overhead-strike':\n if (phase === 'preparation') {\n elevation = 0.03; // Pre-elevation for wind-up\n } else if (phase === 'execution') {\n elevation = 0.05; // Maximum elevation for overhead power\n } else {\n elevation = 0.01;\n }\n break;\n\n case 'rising-block':\n if (phase === 'preparation') {\n elevation = -0.03; // Lower for rising motion\n } else if (phase === 'execution') {\n elevation = 0.04; // Elevate as block rises\n } else {\n elevation = 0.02;\n }\n break;\n\n case 'shrug':\n if (phase === 'execution') {\n elevation = 0.05; // Maximum elevation for defensive shrug\n } else {\n elevation = 0;\n }\n break;\n\n case 'neutral':\n elevation = 0;\n break;\n }\n\n // Apply constraints\n elevation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SHOULDER_ELEVATION.MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SHOULDER_ELEVATION.MAX, elevation)\n );\n\n return { elevation, side };\n}\n\n/**\n * Calculate spinal flexion for dodges and low attacks\n * \n * Determines forward/backward and lateral bending of spine for\n * defensive movements and low attack positioning.\n * \n * @param movementType - Type of movement requiring spinal flexion\n * @param intensity - Movement intensity (0=minimal, 1=full)\n * @returns Spinal flexion state with flexion and lateral bend angles\n * \n * @example\n * ```typescript\n * const spineState = calculateSpinalFlexion('duck', 0.8);\n * // Returns: { flexion: 0.6, lateralBend: 0 }\n * ```\n * \n * @public\n * @korean 회피및하단공격용척추굽힘계산\n */\nexport function calculateSpinalFlexion(\n movementType: SpinalMovementType,\n intensity: number = 1.0\n): SpinalFlexionState {\n let flexion = 0;\n let lateralBend = 0;\n\n // Clamp intensity to 0-1 range\n intensity = Math.max(0, Math.min(1, intensity));\n\n switch (movementType) {\n case 'duck':\n flexion = 0.7 * intensity; // Forward bend for ducking\n lateralBend = 0;\n break;\n\n case 'lean-back':\n flexion = -0.4 * intensity; // Backward bend for evasion\n lateralBend = 0;\n break;\n\n case 'lean-left':\n flexion = 0.1 * intensity; // Slight forward component\n lateralBend = -0.25 * intensity; // Left lateral bend\n break;\n\n case 'lean-right':\n flexion = 0.1 * intensity;\n lateralBend = 0.25 * intensity; // Right lateral bend\n break;\n\n case 'low-attack':\n flexion = 0.5 * intensity; // Forward bend for low strikes\n lateralBend = 0;\n break;\n\n case 'neutral':\n flexion = 0;\n lateralBend = 0;\n break;\n }\n\n // Apply constraints\n flexion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.FLEXION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.FLEXION_MAX, flexion)\n );\n lateralBend = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.LATERAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.LATERAL_MAX, lateralBend)\n );\n\n return { flexion, lateralBend };\n}\n\n/**\n * Calculate knee drive for knee strikes and clinch\n * \n * Determines independent knee positioning for close-range combat,\n * crucial for knee strike power and clinch work positioning.\n * \n * @param technique - Technique requiring knee drive\n * @param phase - Technique phase\n * @param side - Which knee\n * @returns Knee drive state with height and forward distance\n * \n * @example\n * ```typescript\n * const kneeState = calculateKneeDrive('knee-strike', 'execution', 'right');\n * // Returns: { height: 0.7, forward: 0.25, side: 'right' }\n * ```\n * \n * @public\n * @korean 무릎차기및클린치용무릎밀어올림계산\n */\nexport function calculateKneeDrive(\n technique: KneeTechniqueType,\n phase: KneePhase,\n side: BodySide\n): KneeDriveState {\n let height = 0;\n let forward = 0;\n\n switch (technique) {\n case 'knee-strike':\n if (phase === 'wind-up') {\n height = 0.3; // Partial chamber\n forward = 0.1;\n } else if (phase === 'execution') {\n height = 0.7; // Drive upward\n forward = 0.25; // Drive forward for power\n } else {\n height = 0.2;\n forward = 0.05;\n }\n break;\n\n case 'clinch-control':\n if (phase === 'execution') {\n height = 0.4; // Moderate elevation for control\n forward = 0.15; // Forward pressure\n } else {\n height = 0.2;\n forward = 0.08;\n }\n break;\n\n case 'push-kick':\n if (phase === 'wind-up') {\n height = 0.5; // High chamber\n forward = 0.05;\n } else if (phase === 'execution') {\n height = 0.6; // Maintain height\n forward = 0.3; // Strong forward drive\n } else {\n height = 0.3;\n forward = 0.1;\n }\n break;\n\n case 'neutral':\n height = 0;\n forward = 0;\n break;\n }\n\n // Apply constraints\n height = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MAX, height)\n );\n forward = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MAX, forward)\n );\n\n return { height, forward, side };\n}\n\n/**\n * Calculate knee strike power modifier\n * \n * Determines power bonus based on knee drive height and forward momentum.\n * Greater drive generates more power through proper mechanics.\n * \n * @param kneeState - Current knee drive state\n * @returns Power multiplier (1.0-1.35x, with knee strikes getting up to 35% bonus)\n * \n * @example\n * ```typescript\n * const kneeState = calculateKneeDrive('knee-strike', 'execution', 'right');\n * const power = calculateKneeStrikePowerModifier(kneeState);\n * // Returns ~1.30 for properly executed knee strike\n * ```\n * \n * @public\n * @korean 무릎차기파워배율계산\n */\nexport function calculateKneeStrikePowerModifier(kneeState: KneeDriveState): number {\n // Normalize height to 0-1 range\n const normalizedHeight = kneeState.height / ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MAX;\n \n // Normalize forward drive to 0-1 range\n const normalizedForward = kneeState.forward / ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MAX;\n \n // Height contributes 60%, forward drive contributes 40%\n const powerFactor = (normalizedHeight * 0.6) + (normalizedForward * 0.4);\n \n // Knee strikes get up to 35% power bonus from proper drive\n return 1.0 + (powerFactor * 0.35);\n}\n\n"],"mappings":";;;;;;;;;;AAgYA,IAAa,6BAA6B;;;;;CAKxC,cAAc;EACZ,aAAa;EACb,aAAa;EACb,cAAc;EACd,cAAc;EACd,gBAAgB;EAChB,gBAAgB;EACjB;;;;;CAMD,oBAAoB;EAClB,KAAK;EACL,KAAK;EACN;;;;;CAMD,oBAAoB;EAClB,aAAa;EACb,aAAa;EACb,eAAe;EACf,eAAe;EAChB;;;;;CAMD,YAAY;EACV,cAAc;EACd,cAAc;EACd,cAAc;EACf;;;;;CAMD,YAAY;EACV,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACd;;;;;CAMD,gBAAgB;EACd,aAAa;EACb,aAAa;EACb,aAAa;EACb,aAAa;EACd;CACF;;;;;;;;;;;;;;;;;;;;;AAiHD,SAAgB,kCACd,UACA,UACQ;CAER,MAAM,oBAAoB,KAAK,IAAI,SAAS,gBAAgB,GAC1D,2BAA2B,aAAa;CAC1C,MAAM,qBAAqB,KAAK,IAAI,SAAS,iBAAiB,GAC5D,2BAA2B,aAAa;CAC1C,MAAM,uBAAuB,KAAK,IAAI,SAAS,mBAAmB,GAChE,2BAA2B,aAAa;CAG1C,IAAI,cAAc;CAClB,QAAQ,UAAR;EACE,KAAK;GACH,cAAc,qBAAqB,KAAM,oBAAoB;GAC7D;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,uBAAuB,KAAM,qBAAqB;GAC1F;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,uBAAuB;GAC/D;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,qBAAqB,KAAM,uBAAuB;GAC1F;EACF,KAAK;GACH,cAAc,qBAAqB,KAAM,oBAAoB;GAC7D;;CAIJ,OAAO,IAAO,cAAc"}
1
+ {"version":3,"file":"AdvancedJointMovements.js","names":[],"sources":["../../../../src/systems/animation/systems/AdvancedJointMovements.ts"],"sourcesContent":["/**\n * Advanced Joint Movement System for Korean Martial Arts\n * \n * Extends the base skeletal animation system with specialized joint movements\n * for authentic martial arts technique execution:\n * - Hip rotation for kicks (고관절 회전)\n * - Shoulder elevation/depression (어깨 들어올림)\n * - Ankle articulation (발목 관절)\n * - Wrist snap mechanics (손목 스냅)\n * - Knee drive positioning (무릎 밀어올림)\n * - Spinal flexion/extension (척추 굽힘)\n * \n * @module systems/animation/AdvancedJointMovements\n * @category Animation System\n * @korean 고급관절동작시스템\n */\n\nimport * as THREE from \"three\";\n\n/**\n * Body side for limb-specific movements\n * \n * @korean 신체측면\n */\nexport type BodySide = 'left' | 'right';\n\n/**\n * Kick technique types for hip rotation calculation\n * \n * Korean terminology:\n * - front: 앞차기 (Apchagi)\n * - roundhouse: 돌려차기 (Dollyeochagi)\n * - side: 옆차기 (Yeopchagi)\n * - hook: 후려차기 (Huryeochagi)\n * - axe: 내려차기 (Naeryeochagi)\n * \n * @korean 차기기술유형\n */\nexport type KickType = 'front' | 'roundhouse' | 'side' | 'hook' | 'axe';\n\n/**\n * Hand strike technique types for wrist snap calculation\n * \n * Korean terminology:\n * - backfist: 등주먹 (Deungjumeok)\n * - knife-hand: 수도 (Sudo)\n * - palm-heel: 장저 (Jangjeo)\n * - ridge-hand: 손날등 (Sonnaldeung)\n * - hammer-fist: 망치주먹 (Mangchijumeok)\n * \n * @korean 수격기술유형\n */\nexport type HandStrikeType = 'backfist' | 'knife-hand' | 'palm-heel' | 'ridge-hand' | 'hammer-fist';\n\n/**\n * Kick height levels for hip rotation scaling\n * \n * Korean terminology:\n * - 0: 하단 (Hadan) - Low section\n * - 1: 중단 (Jungdan) - Middle section\n * - 2: 상단 (Sangdan) - High section\n * \n * @korean 차기높이\n */\nexport type KickHeight = 0 | 1 | 2;\n\n/**\n * Technique execution phases\n * \n * Korean terminology:\n * - chamber: 준비 (Junbi) - Preparation/chamber\n * - extension: 확장 (Hwakjang) - Extension\n * - retraction: 회수 (Hoesu) - Retraction\n * \n * @korean 기술단계\n */\nexport type TechniquePhase = 'chamber' | 'extension' | 'retraction';\n\n/**\n * Strike execution phases\n * \n * Korean terminology:\n * - wind-up: 예비동작 (Yebi Dongjak) - Wind-up\n * - impact: 타격 (Tagyeok) - Impact\n * - follow-through: 후속동작 (Husok Dongjak) - Follow-through\n * \n * @korean 타격단계\n */\nexport type StrikePhase = 'wind-up' | 'impact' | 'follow-through';\n\n/**\n * Block and overhead technique types for shoulder elevation\n * \n * Korean terminology:\n * - high-block: 상단막기 (Sangdan Makgi)\n * - overhead-strike: 상단공격 (Sangdan Gonggyeok)\n * - rising-block: 올려막기 (Ollyeo Makgi)\n * - shrug: 어깨올리기 (Eokkae Olligi)\n * - neutral: 중립 (Jungnip)\n * \n * @korean 어깨기술유형\n */\nexport type ShoulderTechniqueType = 'high-block' | 'overhead-strike' | 'rising-block' | 'shrug' | 'neutral';\n\n/**\n * Shoulder and block technique execution phases\n * \n * Korean terminology:\n * - preparation: 준비 (Junbi)\n * - execution: 실행 (Silhaeng)\n * - recovery: 복귀 (Bokgwi)\n * \n * @korean 어깨단계\n */\nexport type ShoulderPhase = 'preparation' | 'execution' | 'recovery';\n\n/**\n * Spinal movement types for dodging and positioning\n * \n * Korean terminology:\n * - duck: 숙이기 (Sugigi) - Duck down\n * - lean-back: 뒤로기울기 (Dwiro Giulgi) - Lean back\n * - lean-left: 왼쪽기울기 (Oenjjok Giulgi) - Lean left\n * - lean-right: 오른쪽기울기 (Oreunjjok Giulgi) - Lean right\n * - low-attack: 낮은공격 (Najeun Gonggyeok) - Low attack\n * - neutral: 중립 (Jungnip) - Neutral\n * \n * @korean 척추동작유형\n */\nexport type SpinalMovementType = 'duck' | 'lean-back' | 'lean-left' | 'lean-right' | 'low-attack' | 'neutral';\n\n/**\n * Knee drive technique types for close-range combat\n * \n * Korean terminology:\n * - knee-strike: 무릎차기 (Mureup Chagi)\n * - clinch-control: 붙잡기제어 (Butjapgi Jeeo)\n * - push-kick: 밀어차기 (Mireo Chagi)\n * - neutral: 중립 (Jungnip)\n * \n * @korean 무릎기술유형\n */\nexport type KneeTechniqueType = 'knee-strike' | 'clinch-control' | 'push-kick' | 'neutral';\n\n/**\n * Knee technique execution phases\n * \n * Korean terminology:\n * - wind-up: 예비동작 (Yebi Dongjak)\n * - execution: 실행 (Silhaeng)\n * - recovery: 복귀 (Bokgwi)\n * \n * @korean 무릎단계\n */\nexport type KneePhase = 'wind-up' | 'execution' | 'recovery';\n\n/**\n * Hip rotation state for dynamic kick mechanics\n * \n * Tracks independent hip rotation in multiple planes for realistic\n * high kicks, roundhouse kicks, and hook kicks. Separates hip rotation\n * from pelvis rotation for authentic martial arts biomechanics.\n * \n * Korean: 고관절 회전 상태\n * \n */\nexport interface HipRotationState {\n /**\n * Frontal plane rotation (abduction/adduction) in radians\n * - Positive: Leg moves away from body centerline (abduction)\n * - Negative: Leg moves toward centerline (adduction)\n * Range: ±1.8 rad (±103°) for high kicks\n * \n * @korean 외전각도\n */\n readonly frontalRotation: number;\n\n /**\n * Sagittal plane rotation (flexion/extension) in radians\n * - Positive: Leg moves forward (flexion)\n * - Negative: Leg moves backward (extension)\n * Range: -1.8 to 1.8 rad for kicks\n * \n * @korean 굴곡각도\n */\n readonly sagittalRotation: number;\n\n /**\n * Transverse plane rotation (internal/external rotation) in radians\n * - Positive: Thigh rotates inward\n * - Negative: Thigh rotates outward\n * Range: ±0.8 rad (±46°)\n * \n * @korean 회전각도\n */\n readonly transverseRotation: number;\n\n /**\n * Which hip (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Shoulder elevation/depression state for blocks and overhead strikes\n * \n * Tracks vertical shoulder movement independent of arm rotation.\n * Essential for authentic blocking mechanics and overhead techniques.\n * \n * Korean: 어깨 들어올림 상태\n * \n */\nexport interface ShoulderElevationState {\n /**\n * Vertical displacement in meters\n * - Positive: Shoulder elevated (shrug)\n * - Negative: Shoulder depressed (drop)\n * Range: ±0.05 m (±5cm)\n * \n * @korean 수직변위\n */\n readonly elevation: number;\n\n /**\n * Which shoulder (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Ankle articulation state for kick chambers and pivots\n * \n * Tracks ankle joint positioning crucial for proper kick mechanics\n * and pivoting in Korean martial arts.\n * \n * Korean: 발목 관절 상태\n * \n */\nexport interface AnkleArticulationState {\n /**\n * Dorsiflexion/plantarflexion angle in radians\n * - Positive: Toes point up (dorsiflexion)\n * - Negative: Toes point down (plantarflexion)\n * Range: -0.8 to 0.5 rad\n * \n * @korean 발등굽힘각도\n */\n readonly flexion: number;\n\n /**\n * Inversion/eversion angle in radians\n * Range: ±0.4 rad (±23°)\n * \n * @korean 안쪽굽힘각도\n */\n readonly inversion: number;\n\n /**\n * Which ankle (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Wrist snap state for rapid hand strikes\n * \n * Tracks rapid wrist rotation mechanics essential for backfist,\n * knife-hand, and other Korean martial arts hand techniques.\n * \n * Korean: 손목 스냅 상태\n * \n */\nexport interface WristSnapState {\n /**\n * Rotation angle in radians\n * Range: ±1.5 rad (±86°)\n * \n * @korean 회전각도\n */\n readonly rotation: number;\n\n /**\n * Snap velocity in rad/s (for power calculation)\n * @korean 회전속도\n */\n readonly velocity: number;\n\n /**\n * Which wrist (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Knee drive state for clinch work and knee strikes\n * \n * Tracks independent knee positioning crucial for close-range\n * combat and knee strike techniques.\n * \n * Korean: 무릎 밀어올림 상태\n * \n */\nexport interface KneeDriveState {\n /**\n * Drive height in meters (vertical displacement)\n * Range: 0 to 0.8 m (80cm max lift)\n * \n * @korean 들어올림높이\n */\n readonly height: number;\n\n /**\n * Forward drive distance in meters\n * Range: 0 to 0.3 m (30cm)\n * \n * @korean 전방거리\n */\n readonly forward: number;\n\n /**\n * Which knee (left or right)\n * @korean 측면\n */\n readonly side: BodySide;\n}\n\n/**\n * Spinal flexion/extension state for dodges and low attacks\n * \n * Tracks forward/backward bending of spine for defensive\n * movements and low attack positioning.\n * \n * Korean: 척추 굽힘 상태\n * \n */\nexport interface SpinalFlexionState {\n /**\n * Flexion angle in radians (forward/backward bend)\n * - Positive: Forward bend\n * - Negative: Backward bend\n * Range: -0.5 to 0.8 rad\n * \n * @korean 굽힘각도\n */\n readonly flexion: number;\n\n /**\n * Lateral bend in radians (side to side)\n * Range: ±0.3 rad (±17°)\n * \n * @korean 측면굽힘각도\n */\n readonly lateralBend: number;\n}\n\n/**\n * Advanced joint movement constraints\n * \n * Defines anatomically correct limits for all advanced joint movements\n * based on human biomechanics and Korean martial arts techniques.\n * \n * @korean 고급관절제약조건\n */\nexport const ADVANCED_JOINT_CONSTRAINTS = {\n /**\n * Hip rotation constraints for kicks\n * @korean 고관절제약조건\n */\n HIP_ROTATION: {\n FRONTAL_MIN: -1.8, // -103° adduction\n FRONTAL_MAX: 1.8, // 103° abduction\n SAGITTAL_MIN: -1.8, // -103° extension\n SAGITTAL_MAX: 1.8, // 103° flexion\n TRANSVERSE_MIN: -0.8, // -46° external rotation\n TRANSVERSE_MAX: 0.8, // 46° internal rotation\n },\n\n /**\n * Shoulder elevation constraints\n * @korean 어깨들어올림제약조건\n */\n SHOULDER_ELEVATION: {\n MIN: -0.05, // -5cm depression\n MAX: 0.05, // 5cm elevation\n },\n\n /**\n * Ankle articulation constraints\n * @korean 발목관절제약조건\n */\n ANKLE_ARTICULATION: {\n FLEXION_MIN: -0.8, // -46° plantarflexion\n FLEXION_MAX: 0.5, // 29° dorsiflexion\n INVERSION_MIN: -0.4, // -23° eversion\n INVERSION_MAX: 0.4, // 23° inversion\n },\n\n /**\n * Wrist snap constraints\n * @korean 손목스냅제약조건\n */\n WRIST_SNAP: {\n ROTATION_MIN: -1.5, // -86°\n ROTATION_MAX: 1.5, // 86°\n MAX_VELOCITY: 30.0, // 30 rad/s for power strikes\n },\n\n /**\n * Knee drive constraints\n * @korean 무릎밀어올림제약조건\n */\n KNEE_DRIVE: {\n HEIGHT_MIN: 0, // Ground level\n HEIGHT_MAX: 0.8, // 80cm max lift\n FORWARD_MIN: 0,\n FORWARD_MAX: 0.3, // 30cm forward\n },\n\n /**\n * Spinal flexion constraints\n * @korean 척추굽힘제약조건\n */\n SPINAL_FLEXION: {\n FLEXION_MIN: -0.5, // -29° extension (backward)\n FLEXION_MAX: 0.8, // 46° flexion (forward)\n LATERAL_MIN: -0.3, // -17° left bend\n LATERAL_MAX: 0.3, // 17° right bend\n },\n} as const;\n\n/**\n * Calculate hip rotation for kick mechanics\n * \n * Determines optimal hip rotation angles for various kick types,\n * ensuring anatomically correct positioning and maximum power generation.\n * \n * @param kickType - Type of kick being performed\n * @param targetHeight - Target height for kick (0=low, 1=medium, 2=high)\n * @param side - Which leg is kicking\n * @returns Hip rotation state with all three plane rotations\n * \n * @example\n * ```typescript\n * const hipState = calculateHipRotationForKick('roundhouse', 2, 'right');\n * // Returns frontal: 1.5, sagittal: 1.3, transverse: 0.6 for high roundhouse\n * ```\n * \n * @korean 차기용고관절회전계산\n */\nexport function calculateHipRotationForKick(\n kickType: KickType,\n targetHeight: KickHeight,\n side: BodySide\n): HipRotationState {\n let frontalRotation = 0;\n let sagittalRotation = 0;\n let transverseRotation = 0;\n\n // Height multiplier (more rotation needed for higher kicks)\n const heightMultiplier = targetHeight === 0 ? 0.5 : targetHeight === 1 ? 0.75 : 1.0;\n\n switch (kickType) {\n case 'front':\n // Front kick: primarily sagittal plane (forward)\n sagittalRotation = 1.5 * heightMultiplier;\n frontalRotation = 0.2; // Slight abduction for balance\n transverseRotation = 0;\n break;\n\n case 'roundhouse':\n // Roundhouse: combination of frontal abduction and transverse rotation\n frontalRotation = 1.5 * heightMultiplier;\n sagittalRotation = 0.8 * heightMultiplier;\n transverseRotation = 0.6 * heightMultiplier; // Internal rotation for power\n break;\n\n case 'side':\n // Side kick: primarily frontal plane (abduction)\n frontalRotation = 1.6 * heightMultiplier;\n sagittalRotation = 0.3;\n transverseRotation = -0.4; // External rotation for proper foot alignment\n break;\n\n case 'hook':\n // Hook kick: high abduction with forward component\n frontalRotation = 1.7 * heightMultiplier;\n sagittalRotation = 1.2 * heightMultiplier;\n transverseRotation = 0.5;\n break;\n\n case 'axe':\n // Axe kick: maximum sagittal flexion, some abduction\n frontalRotation = 0.8 * heightMultiplier;\n sagittalRotation = 1.8 * heightMultiplier; // Maximum forward flexion\n transverseRotation = 0.2;\n break;\n }\n\n // Apply constraints\n frontalRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MAX, frontalRotation)\n );\n sagittalRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MAX, sagittalRotation)\n );\n transverseRotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MAX, transverseRotation)\n );\n\n return {\n frontalRotation,\n sagittalRotation,\n transverseRotation,\n side,\n };\n}\n\n/**\n * Calculate kick power modifier from hip rotation\n * \n * Determines power bonus based on proper hip rotation technique.\n * Greater rotation in the correct planes generates more power.\n * \n * @param hipState - Current hip rotation state\n * @param kickType - Type of kick\n * @returns Power multiplier (1.0-1.40x, with kicks getting up to 40% bonus)\n * \n * @example\n * ```typescript\n * const hipState = calculateHipRotationForKick('roundhouse', 2, 'right');\n * const power = calculateKickPowerFromHipRotation(hipState, 'roundhouse');\n * // Returns ~1.35 for properly executed high roundhouse\n * ```\n * \n * @korean 고관절회전에서차기파워계산\n */\nexport function calculateKickPowerFromHipRotation(\n hipState: HipRotationState,\n kickType: KickType\n): number {\n // Normalize rotations to 0-1 range based on constraints\n const normalizedFrontal = Math.abs(hipState.frontalRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.FRONTAL_MAX;\n const normalizedSagittal = Math.abs(hipState.sagittalRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.SAGITTAL_MAX;\n const normalizedTransverse = Math.abs(hipState.transverseRotation) / \n ADVANCED_JOINT_CONSTRAINTS.HIP_ROTATION.TRANSVERSE_MAX;\n\n // Different kicks benefit from different rotation planes\n let powerFactor = 0;\n switch (kickType) {\n case 'front':\n powerFactor = normalizedSagittal * 0.8 + normalizedFrontal * 0.2;\n break;\n case 'roundhouse':\n powerFactor = normalizedFrontal * 0.5 + normalizedTransverse * 0.3 + normalizedSagittal * 0.2;\n break;\n case 'side':\n powerFactor = normalizedFrontal * 0.7 + normalizedTransverse * 0.3;\n break;\n case 'hook':\n powerFactor = normalizedFrontal * 0.4 + normalizedSagittal * 0.4 + normalizedTransverse * 0.2;\n break;\n case 'axe':\n powerFactor = normalizedSagittal * 0.8 + normalizedFrontal * 0.2;\n break;\n }\n\n // Kicks can get up to 40% power bonus from proper hip rotation\n return 1.0 + (powerFactor * 0.40);\n}\n\n/**\n * Apply hip rotation to Three.js Euler angles\n * \n * Converts hip rotation state into Three.js Euler angles for rendering.\n * \n * @param hipState - Hip rotation state\n * @returns Three.js Euler angles (X=sagittal, Y=transverse, Z=frontal)\n * \n * @korean 고관절회전을오일러각으로적용\n */\nexport function applyHipRotationToEuler(hipState: HipRotationState): THREE.Euler {\n return new THREE.Euler(\n hipState.sagittalRotation, // X-axis: forward/backward\n hipState.transverseRotation, // Y-axis: twist\n hipState.frontalRotation, // Z-axis: side to side\n 'XYZ'\n );\n}\n\n/**\n * Calculate ankle articulation for kick chamber\n * \n * Determines proper ankle positioning for kick chambering and extension,\n * crucial for proper foot alignment and power transfer in Korean martial arts.\n * \n * @param kickType - Type of kick being chambered\n * @param phase - Kick phase: 'chamber', 'extension', 'retraction'\n * @param side - Which ankle\n * @returns Ankle articulation state with flexion and inversion angles\n * \n * @example\n * ```typescript\n * const ankleState = calculateAnkleArticulation('front', 'extension', 'right');\n * // Returns: { flexion: 0.5, inversion: 0, side: 'right' }\n * ```\n * \n * @korean 차기챔버용발목관절계산\n */\nexport function calculateAnkleArticulation(\n kickType: KickType,\n phase: TechniquePhase,\n side: BodySide\n): AnkleArticulationState {\n let flexion = 0;\n let inversion = 0;\n\n switch (kickType) {\n case 'front':\n if (phase === 'chamber') {\n flexion = 0.2; // Slight dorsiflexion in chamber\n } else if (phase === 'extension') {\n flexion = 0.5; // Strong dorsiflexion for striking with ball of foot\n } else {\n flexion = 0.1; // Slight flexion during retraction\n }\n inversion = 0; // Neutral for front kicks\n break;\n\n case 'roundhouse':\n if (phase === 'chamber') {\n flexion = -0.3; // Plantarflexion in chamber\n } else if (phase === 'extension') {\n flexion = -0.5; // Strong plantarflexion for instep strike\n inversion = -0.2; // Slight eversion to align instep\n } else {\n flexion = -0.2;\n inversion = 0;\n }\n break;\n\n case 'side':\n if (phase === 'chamber') {\n flexion = 0.3; // Dorsiflexion in chamber\n } else if (phase === 'extension') {\n flexion = 0.4; // Dorsiflexion for heel/blade strike\n inversion = 0.3; // Inversion to present blade edge\n } else {\n flexion = 0.2;\n inversion = 0.1;\n }\n break;\n\n case 'hook':\n if (phase === 'chamber') {\n flexion = -0.2;\n } else if (phase === 'extension') {\n flexion = -0.4; // Plantarflexion for heel strike\n inversion = -0.15; // Slight eversion\n } else {\n flexion = -0.1;\n inversion = 0;\n }\n break;\n\n case 'axe':\n if (phase === 'chamber') {\n flexion = 0.1; // Minimal flexion in high chamber\n } else if (phase === 'extension') {\n flexion = 0.5; // Strong dorsiflexion for downward strike\n } else {\n flexion = 0.2;\n }\n inversion = 0; // Neutral for axe kicks\n break;\n }\n\n // Apply constraints\n flexion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.FLEXION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.FLEXION_MAX, flexion)\n );\n inversion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.INVERSION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.ANKLE_ARTICULATION.INVERSION_MAX, inversion)\n );\n\n return { flexion, inversion, side };\n}\n\n/**\n * Calculate wrist snap for hand strikes\n * \n * Determines wrist rotation and velocity for power generation in\n * backfist, knife-hand, and other Korean martial arts hand techniques.\n * \n * @param strikeType - Type of hand strike\n * @param phase - Strike phase: 'wind-up', 'impact', 'follow-through'\n * @param side - Which wrist\n * @returns Wrist snap state with rotation angle and velocity\n * \n * @example\n * ```typescript\n * const wristState = calculateWristSnap('backfist', 'impact', 'right');\n * // Returns: { rotation: 1.2, velocity: 25.0, side: 'right' }\n * ```\n * \n * @korean 수격용손목스냅계산\n */\nexport function calculateWristSnap(\n strikeType: HandStrikeType,\n phase: StrikePhase,\n side: BodySide\n): WristSnapState {\n let rotation = 0;\n let velocity = 0;\n\n switch (strikeType) {\n case 'backfist':\n if (phase === 'wind-up') {\n rotation = -0.8; // Cocked back\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 1.2; // Snapped forward\n velocity = 25.0; // High velocity snap\n } else {\n rotation = 0.5;\n velocity = 5.0;\n }\n break;\n\n case 'knife-hand':\n if (phase === 'wind-up') {\n rotation = -0.5;\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.8; // Moderate snap for precision\n velocity = 20.0;\n } else {\n rotation = 0.3;\n velocity = 3.0;\n }\n break;\n\n case 'palm-heel':\n if (phase === 'wind-up') {\n rotation = -0.3; // Minimal wind-up\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.5; // Push through\n velocity = 15.0; // Lower velocity, more push\n } else {\n rotation = 0.2;\n velocity = 2.0;\n }\n break;\n\n case 'ridge-hand':\n if (phase === 'wind-up') {\n rotation = 0.8; // Opposite direction\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = -1.0; // Reverse snap\n velocity = 22.0;\n } else {\n rotation = -0.4;\n velocity = 4.0;\n }\n break;\n\n case 'hammer-fist':\n if (phase === 'wind-up') {\n rotation = 0.2; // Minimal rotation\n velocity = 0;\n } else if (phase === 'impact') {\n rotation = 0.3; // Downward strike, less rotation\n velocity = 18.0;\n } else {\n rotation = 0.1;\n velocity = 2.0;\n }\n break;\n }\n\n // Apply constraints\n rotation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MAX, rotation)\n );\n velocity = Math.min(ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.MAX_VELOCITY, Math.abs(velocity));\n\n return { rotation, velocity, side };\n}\n\n/**\n * Calculate wrist snap power modifier\n * \n * Determines power bonus based on wrist snap velocity and rotation.\n * Higher velocity generates more power for whipping strikes.\n * \n * @param wristState - Current wrist snap state\n * @returns Power multiplier (1.0-1.25x, with hand strikes getting up to 25% bonus)\n * \n * @example\n * ```typescript\n * const wristState = calculateWristSnap('backfist', 'impact', 'right');\n * const power = calculateWristSnapPowerModifier(wristState);\n * // Returns ~1.20 for proper backfist snap\n * ```\n * \n * @korean 손목스냅파워배율계산\n */\nexport function calculateWristSnapPowerModifier(wristState: WristSnapState): number {\n // Normalize velocity to 0-1 range\n const normalizedVelocity = wristState.velocity / ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.MAX_VELOCITY;\n \n // Normalize rotation magnitude to 0-1 range\n const normalizedRotation = Math.abs(wristState.rotation) / ADVANCED_JOINT_CONSTRAINTS.WRIST_SNAP.ROTATION_MAX;\n \n // Velocity contributes 70%, rotation contributes 30%\n const powerFactor = (normalizedVelocity * 0.7) + (normalizedRotation * 0.3);\n \n // Hand strikes get up to 25% power bonus from wrist snap\n return 1.0 + (powerFactor * 0.25);\n}\n\n/**\n * Calculate shoulder elevation for blocks and overhead strikes\n * \n * Determines vertical shoulder movement for defensive blocks and\n * overhead striking techniques in Korean martial arts.\n * \n * @param techniqueType - Type of technique requiring shoulder movement\n * @param phase - Technique phase\n * @param side - Which shoulder\n * @returns Shoulder elevation state with vertical displacement\n * \n * @example\n * ```typescript\n * const shoulderState = calculateShoulderElevation('high-block', 'execution', 'left');\n * // Returns: { elevation: 0.04, side: 'left' }\n * ```\n * \n * @korean 블록및상단공격용어깨들어올림계산\n */\nexport function calculateShoulderElevation(\n techniqueType: ShoulderTechniqueType,\n phase: ShoulderPhase,\n side: BodySide\n): ShoulderElevationState {\n let elevation = 0;\n\n switch (techniqueType) {\n case 'high-block':\n if (phase === 'preparation') {\n elevation = -0.02; // Slight drop before elevation\n } else if (phase === 'execution') {\n elevation = 0.04; // Elevate for high block\n } else {\n elevation = 0.01; // Slight elevation maintained\n }\n break;\n\n case 'overhead-strike':\n if (phase === 'preparation') {\n elevation = 0.03; // Pre-elevation for wind-up\n } else if (phase === 'execution') {\n elevation = 0.05; // Maximum elevation for overhead power\n } else {\n elevation = 0.01;\n }\n break;\n\n case 'rising-block':\n if (phase === 'preparation') {\n elevation = -0.03; // Lower for rising motion\n } else if (phase === 'execution') {\n elevation = 0.04; // Elevate as block rises\n } else {\n elevation = 0.02;\n }\n break;\n\n case 'shrug':\n if (phase === 'execution') {\n elevation = 0.05; // Maximum elevation for defensive shrug\n } else {\n elevation = 0;\n }\n break;\n\n case 'neutral':\n elevation = 0;\n break;\n }\n\n // Apply constraints\n elevation = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SHOULDER_ELEVATION.MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SHOULDER_ELEVATION.MAX, elevation)\n );\n\n return { elevation, side };\n}\n\n/**\n * Calculate spinal flexion for dodges and low attacks\n * \n * Determines forward/backward and lateral bending of spine for\n * defensive movements and low attack positioning.\n * \n * @param movementType - Type of movement requiring spinal flexion\n * @param intensity - Movement intensity (0=minimal, 1=full)\n * @returns Spinal flexion state with flexion and lateral bend angles\n * \n * @example\n * ```typescript\n * const spineState = calculateSpinalFlexion('duck', 0.8);\n * // Returns: { flexion: 0.6, lateralBend: 0 }\n * ```\n * \n * @korean 회피및하단공격용척추굽힘계산\n */\nexport function calculateSpinalFlexion(\n movementType: SpinalMovementType,\n intensity: number = 1.0\n): SpinalFlexionState {\n let flexion = 0;\n let lateralBend = 0;\n\n // Clamp intensity to 0-1 range\n intensity = Math.max(0, Math.min(1, intensity));\n\n switch (movementType) {\n case 'duck':\n flexion = 0.7 * intensity; // Forward bend for ducking\n lateralBend = 0;\n break;\n\n case 'lean-back':\n flexion = -0.4 * intensity; // Backward bend for evasion\n lateralBend = 0;\n break;\n\n case 'lean-left':\n flexion = 0.1 * intensity; // Slight forward component\n lateralBend = -0.25 * intensity; // Left lateral bend\n break;\n\n case 'lean-right':\n flexion = 0.1 * intensity;\n lateralBend = 0.25 * intensity; // Right lateral bend\n break;\n\n case 'low-attack':\n flexion = 0.5 * intensity; // Forward bend for low strikes\n lateralBend = 0;\n break;\n\n case 'neutral':\n flexion = 0;\n lateralBend = 0;\n break;\n }\n\n // Apply constraints\n flexion = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.FLEXION_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.FLEXION_MAX, flexion)\n );\n lateralBend = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.LATERAL_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.SPINAL_FLEXION.LATERAL_MAX, lateralBend)\n );\n\n return { flexion, lateralBend };\n}\n\n/**\n * Calculate knee drive for knee strikes and clinch\n * \n * Determines independent knee positioning for close-range combat,\n * crucial for knee strike power and clinch work positioning.\n * \n * @param technique - Technique requiring knee drive\n * @param phase - Technique phase\n * @param side - Which knee\n * @returns Knee drive state with height and forward distance\n * \n * @example\n * ```typescript\n * const kneeState = calculateKneeDrive('knee-strike', 'execution', 'right');\n * // Returns: { height: 0.7, forward: 0.25, side: 'right' }\n * ```\n * \n * @korean 무릎차기및클린치용무릎밀어올림계산\n */\nexport function calculateKneeDrive(\n technique: KneeTechniqueType,\n phase: KneePhase,\n side: BodySide\n): KneeDriveState {\n let height = 0;\n let forward = 0;\n\n switch (technique) {\n case 'knee-strike':\n if (phase === 'wind-up') {\n height = 0.3; // Partial chamber\n forward = 0.1;\n } else if (phase === 'execution') {\n height = 0.7; // Drive upward\n forward = 0.25; // Drive forward for power\n } else {\n height = 0.2;\n forward = 0.05;\n }\n break;\n\n case 'clinch-control':\n if (phase === 'execution') {\n height = 0.4; // Moderate elevation for control\n forward = 0.15; // Forward pressure\n } else {\n height = 0.2;\n forward = 0.08;\n }\n break;\n\n case 'push-kick':\n if (phase === 'wind-up') {\n height = 0.5; // High chamber\n forward = 0.05;\n } else if (phase === 'execution') {\n height = 0.6; // Maintain height\n forward = 0.3; // Strong forward drive\n } else {\n height = 0.3;\n forward = 0.1;\n }\n break;\n\n case 'neutral':\n height = 0;\n forward = 0;\n break;\n }\n\n // Apply constraints\n height = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MAX, height)\n );\n forward = Math.max(\n ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MIN,\n Math.min(ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MAX, forward)\n );\n\n return { height, forward, side };\n}\n\n/**\n * Calculate knee strike power modifier\n * \n * Determines power bonus based on knee drive height and forward momentum.\n * Greater drive generates more power through proper mechanics.\n * \n * @param kneeState - Current knee drive state\n * @returns Power multiplier (1.0-1.35x, with knee strikes getting up to 35% bonus)\n * \n * @example\n * ```typescript\n * const kneeState = calculateKneeDrive('knee-strike', 'execution', 'right');\n * const power = calculateKneeStrikePowerModifier(kneeState);\n * // Returns ~1.30 for properly executed knee strike\n * ```\n * \n * @korean 무릎차기파워배율계산\n */\nexport function calculateKneeStrikePowerModifier(kneeState: KneeDriveState): number {\n // Normalize height to 0-1 range\n const normalizedHeight = kneeState.height / ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.HEIGHT_MAX;\n \n // Normalize forward drive to 0-1 range\n const normalizedForward = kneeState.forward / ADVANCED_JOINT_CONSTRAINTS.KNEE_DRIVE.FORWARD_MAX;\n \n // Height contributes 60%, forward drive contributes 40%\n const powerFactor = (normalizedHeight * 0.6) + (normalizedForward * 0.4);\n \n // Knee strikes get up to 35% power bonus from proper drive\n return 1.0 + (powerFactor * 0.35);\n}\n\n"],"mappings":";;;;;;;;;;AA+WA,IAAa,6BAA6B;;;;;CAKxC,cAAc;EACZ,aAAa;EACb,aAAa;EACb,cAAc;EACd,cAAc;EACd,gBAAgB;EAChB,gBAAgB;EACjB;;;;;CAMD,oBAAoB;EAClB,KAAK;EACL,KAAK;EACN;;;;;CAMD,oBAAoB;EAClB,aAAa;EACb,aAAa;EACb,eAAe;EACf,eAAe;EAChB;;;;;CAMD,YAAY;EACV,cAAc;EACd,cAAc;EACd,cAAc;EACf;;;;;CAMD,YAAY;EACV,YAAY;EACZ,YAAY;EACZ,aAAa;EACb,aAAa;EACd;;;;;CAMD,gBAAgB;EACd,aAAa;EACb,aAAa;EACb,aAAa;EACb,aAAa;EACd;CACF;;;;;;;;;;;;;;;;;;;;AA+GD,SAAgB,kCACd,UACA,UACQ;CAER,MAAM,oBAAoB,KAAK,IAAI,SAAS,gBAAgB,GAC1D,2BAA2B,aAAa;CAC1C,MAAM,qBAAqB,KAAK,IAAI,SAAS,iBAAiB,GAC5D,2BAA2B,aAAa;CAC1C,MAAM,uBAAuB,KAAK,IAAI,SAAS,mBAAmB,GAChE,2BAA2B,aAAa;CAG1C,IAAI,cAAc;CAClB,QAAQ,UAAR;EACE,KAAK;GACH,cAAc,qBAAqB,KAAM,oBAAoB;GAC7D;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,uBAAuB,KAAM,qBAAqB;GAC1F;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,uBAAuB;GAC/D;EACF,KAAK;GACH,cAAc,oBAAoB,KAAM,qBAAqB,KAAM,uBAAuB;GAC1F;EACF,KAAK;GACH,cAAc,qBAAqB,KAAM,oBAAoB;GAC7D;;CAIJ,OAAO,IAAO,cAAc"}
@@ -74,7 +74,6 @@ export declare const HEAD_TRACKING_SMOOTHING = 0.1;
74
74
  * normalizeAngle(-30); // Returns 330
75
75
  * ```
76
76
  *
77
- * @public
78
77
  * @korean 각도정규화
79
78
  */
80
79
  export declare function normalizeAngle(angle: number): number;
@@ -95,7 +94,6 @@ export declare function normalizeAngle(angle: number): number;
95
94
  * calculateAngleDifference(0, 180); // Returns 180
96
95
  * ```
97
96
  *
98
- * @public
99
97
  * @korean 각도차이계산
100
98
  */
101
99
  export declare function calculateAngleDifference(from: number, to: number): number;
@@ -117,7 +115,6 @@ export declare function calculateAngleDifference(from: number, to: number): numb
117
115
  * calculateAngleToTarget({ x: 0, y: 0 }, { x: 0, y: 1 }); // Returns 90° (down)
118
116
  * ```
119
117
  *
120
- * @public
121
118
  * @korean 목표각도계산
122
119
  */
123
120
  export declare function calculateAngleToTarget(from: Position, to: Position): number;
@@ -127,7 +124,6 @@ export declare function calculateAngleToTarget(from: Position, to: Position): nu
127
124
  * @param initialAngle - Initial facing angle in degrees (default: 0)
128
125
  * @returns Default BodyFacing state
129
126
  *
130
- * @public
131
127
  * @korean 기본몸향하기생성
132
128
  */
133
129
  export declare function createDefaultBodyFacing(initialAngle?: number): BodyFacing;
@@ -154,7 +150,6 @@ export declare function createDefaultBodyFacing(initialAngle?: number): BodyFaci
154
150
  * // Rotates ~0.72° toward 90° (45°/sec * 0.016s)
155
151
  * ```
156
152
  *
157
- * @public
158
153
  * @korean 몸향하기업데이트
159
154
  */
160
155
  export declare function updateBodyFacing(facing: BodyFacing, targetAngle: number, deltaTime: number, currentTime: number): BodyFacing;
@@ -183,7 +178,6 @@ export declare function updateBodyFacing(facing: BodyFacing, targetAngle: number
183
178
  * // Faces toward opponent (pointing right in this case)
184
179
  * ```
185
180
  *
186
- * @public
187
181
  * @korean 상대방향하기업데이트
188
182
  */
189
183
  export declare function updateFacingTowardOpponent(facing: BodyFacing, playerPosition: Position, opponentPosition: Position, deltaTime: number, currentTime: number): BodyFacing;
@@ -196,7 +190,6 @@ export declare function updateFacingTowardOpponent(facing: BodyFacing, playerPos
196
190
  * @param facing - Current body facing state
197
191
  * @returns Updated body facing state with lock enabled
198
192
  *
199
- * @public
200
193
  * @korean 회전잠금
201
194
  */
202
195
  export declare function lockFacing(facing: BodyFacing): BodyFacing;
@@ -208,7 +201,6 @@ export declare function lockFacing(facing: BodyFacing): BodyFacing;
208
201
  * @param facing - Current body facing state
209
202
  * @returns Updated body facing state with lock disabled
210
203
  *
211
- * @public
212
204
  * @korean 회전잠금해제
213
205
  */
214
206
  export declare function unlockFacing(facing: BodyFacing): BodyFacing;
@@ -218,7 +210,6 @@ export declare function unlockFacing(facing: BodyFacing): BodyFacing;
218
210
  * @param facing - Current body facing state
219
211
  * @returns True if 180° turn animation is in progress
220
212
  *
221
- * @public
222
213
  * @korean 회전중확인
223
214
  */
224
215
  export declare function isTurning(facing: BodyFacing): boolean;
@@ -229,7 +220,6 @@ export declare function isTurning(facing: BodyFacing): boolean;
229
220
  * @param facing - Current body facing state
230
221
  * @returns Current facing angle in radians
231
222
  *
232
- * @public
233
223
  * @korean 라디안각도
234
224
  */
235
225
  export declare function getFacingAngleRadians(facing: BodyFacing): number;
@@ -240,7 +230,6 @@ export declare function getFacingAngleRadians(facing: BodyFacing): number;
240
230
  * @param facing - Current body facing state
241
231
  * @returns Head rotation angle in radians
242
232
  *
243
- * @public
244
233
  * @korean 머리각도라디안
245
234
  */
246
235
  export declare function getHeadAngleRadians(facing: BodyFacing): number;
@@ -251,7 +240,6 @@ export declare function getHeadAngleRadians(facing: BodyFacing): number;
251
240
  * @param facing - Current body facing state
252
241
  * @returns Torso rotation in radians (defaults to 0 if not set)
253
242
  *
254
- * @public
255
243
  * @korean 허리회전라디안
256
244
  */
257
245
  export declare function getTorsoRotationRadians(facing: BodyFacing): number;
@@ -262,7 +250,6 @@ export declare function getTorsoRotationRadians(facing: BodyFacing): number;
262
250
  * @param facing - Current body facing state
263
251
  * @returns Hip rotation in radians
264
252
  *
265
- * @public
266
253
  * @korean 골반회전라디안
267
254
  */
268
255
  export declare function getHipRotationRadians(facing: BodyFacing): number;
@@ -271,7 +258,6 @@ export declare function getHipRotationRadians(facing: BodyFacing): number;
271
258
  *
272
259
  * Provides centralized system for body facing calculations and updates.
273
260
  *
274
- * @public
275
261
  * @korean 몸향하기시스템
276
262
  */
277
263
  export declare class BodyFacingSystem {
@@ -281,7 +267,6 @@ export declare class BodyFacingSystem {
281
267
  * @param initialAngle - Initial facing angle in degrees
282
268
  * @returns Default body facing state
283
269
  *
284
- * @public
285
270
  * @korean 기본상태생성
286
271
  */
287
272
  createDefaultState(initialAngle?: number): BodyFacing;
@@ -295,7 +280,6 @@ export declare class BodyFacingSystem {
295
280
  * @param currentTime - Current timestamp
296
281
  * @returns Updated body facing state
297
282
  *
298
- * @public
299
283
  * @korean 업데이트
300
284
  */
301
285
  update(facing: BodyFacing, playerPosition: Position, opponentPosition: Position, deltaTime: number, currentTime: number): BodyFacing;
@@ -305,7 +289,6 @@ export declare class BodyFacingSystem {
305
289
  * @param facing - Current body facing state
306
290
  * @returns Updated state with lock
307
291
  *
308
- * @public
309
292
  * @korean 잠금
310
293
  */
311
294
  lock(facing: BodyFacing): BodyFacing;
@@ -315,7 +298,6 @@ export declare class BodyFacingSystem {
315
298
  * @param facing - Current body facing state
316
299
  * @returns Updated state without lock
317
300
  *
318
- * @public
319
301
  * @korean 잠금해제
320
302
  */
321
303
  unlock(facing: BodyFacing): BodyFacing;
@@ -323,7 +305,6 @@ export declare class BodyFacingSystem {
323
305
  /**
324
306
  * Default body facing system instance
325
307
  *
326
- * @public
327
308
  * @korean 기본몸향하기시스템
328
309
  */
329
310
  export declare const bodyFacingSystem: BodyFacingSystem;
@@ -1 +1 @@
1
- {"version":3,"file":"BodyFacingSystem.d.ts","sourceRoot":"","sources":["../../../../src/systems/animation/systems/BodyFacingSystem.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"BodyFacingSystem.d.ts","sourceRoot":"","sources":["../../../../src/systems/animation/systems/BodyFacingSystem.ts"],"names":[],"mappings":"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"}
@@ -18,7 +18,6 @@ var HEAD_TRACKING_SMOOTHING = .1;
18
18
  * normalizeAngle(-30); // Returns 330
19
19
  * ```
20
20
  *
21
- * @public
22
21
  * @korean 각도정규화
23
22
  */
24
23
  function normalizeAngle(angle) {
@@ -43,7 +42,6 @@ function normalizeAngle(angle) {
43
42
  * calculateAngleDifference(0, 180); // Returns 180
44
43
  * ```
45
44
  *
46
- * @public
47
45
  * @korean 각도차이계산
48
46
  */
49
47
  function calculateAngleDifference(from, to) {
@@ -71,7 +69,6 @@ function calculateAngleDifference(from, to) {
71
69
  * calculateAngleToTarget({ x: 0, y: 0 }, { x: 0, y: 1 }); // Returns 90° (down)
72
70
  * ```
73
71
  *
74
- * @public
75
72
  * @korean 목표각도계산
76
73
  */
77
74
  function calculateAngleToTarget(from, to) {
@@ -99,7 +96,6 @@ function lerp(start, end, t) {
99
96
  * @param initialAngle - Initial facing angle in degrees (default: 0)
100
97
  * @returns Default BodyFacing state
101
98
  *
102
- * @public
103
99
  * @korean 기본몸향하기생성
104
100
  */
105
101
  function createDefaultBodyFacing(initialAngle = 0) {
@@ -138,7 +134,6 @@ function createDefaultBodyFacing(initialAngle = 0) {
138
134
  * // Rotates ~0.72° toward 90° (45°/sec * 0.016s)
139
135
  * ```
140
136
  *
141
- * @public
142
137
  * @korean 몸향하기업데이트
143
138
  */
144
139
  function updateBodyFacing(facing, targetAngle, deltaTime, currentTime) {
@@ -204,7 +199,6 @@ function updateBodyFacing(facing, targetAngle, deltaTime, currentTime) {
204
199
  * // Faces toward opponent (pointing right in this case)
205
200
  * ```
206
201
  *
207
- * @public
208
202
  * @korean 상대방향하기업데이트
209
203
  */
210
204
  function updateFacingTowardOpponent(facing, playerPosition, opponentPosition, deltaTime, currentTime) {
@@ -219,7 +213,6 @@ function updateFacingTowardOpponent(facing, playerPosition, opponentPosition, de
219
213
  * @param facing - Current body facing state
220
214
  * @returns Updated body facing state with lock enabled
221
215
  *
222
- * @public
223
216
  * @korean 회전잠금
224
217
  */
225
218
  function lockFacing(facing) {
@@ -236,7 +229,6 @@ function lockFacing(facing) {
236
229
  * @param facing - Current body facing state
237
230
  * @returns Updated body facing state with lock disabled
238
231
  *
239
- * @public
240
232
  * @korean 회전잠금해제
241
233
  */
242
234
  function unlockFacing(facing) {
@@ -252,7 +244,6 @@ function unlockFacing(facing) {
252
244
  * @param facing - Current body facing state
253
245
  * @returns Head rotation angle in radians
254
246
  *
255
- * @public
256
247
  * @korean 머리각도라디안
257
248
  */
258
249
  function getHeadAngleRadians(facing) {
@@ -263,7 +254,6 @@ function getHeadAngleRadians(facing) {
263
254
  *
264
255
  * Provides centralized system for body facing calculations and updates.
265
256
  *
266
- * @public
267
257
  * @korean 몸향하기시스템
268
258
  */
269
259
  var BodyFacingSystem = class {
@@ -273,7 +263,6 @@ var BodyFacingSystem = class {
273
263
  * @param initialAngle - Initial facing angle in degrees
274
264
  * @returns Default body facing state
275
265
  *
276
- * @public
277
266
  * @korean 기본상태생성
278
267
  */
279
268
  createDefaultState(initialAngle = 0) {
@@ -289,7 +278,6 @@ var BodyFacingSystem = class {
289
278
  * @param currentTime - Current timestamp
290
279
  * @returns Updated body facing state
291
280
  *
292
- * @public
293
281
  * @korean 업데이트
294
282
  */
295
283
  update(facing, playerPosition, opponentPosition, deltaTime, currentTime) {
@@ -301,7 +289,6 @@ var BodyFacingSystem = class {
301
289
  * @param facing - Current body facing state
302
290
  * @returns Updated state with lock
303
291
  *
304
- * @public
305
292
  * @korean 잠금
306
293
  */
307
294
  lock(facing) {
@@ -313,7 +300,6 @@ var BodyFacingSystem = class {
313
300
  * @param facing - Current body facing state
314
301
  * @returns Updated state without lock
315
302
  *
316
- * @public
317
303
  * @korean 잠금해제
318
304
  */
319
305
  unlock(facing) {
@@ -1 +1 @@
1
- {"version":3,"file":"BodyFacingSystem.js","names":[],"sources":["../../../../src/systems/animation/systems/BodyFacingSystem.ts"],"sourcesContent":["/**\n * Body Facing Direction System for Black Trigram\n *\n * Manages automatic character rotation to face opponent with:\n * - Smooth torso rotation at 45°/sec (±90° range)\n * - Independent head tracking (±45° range)\n * - 180° turn animations for repositioning\n * - Facing lock during attack/defend animations\n *\n * Korean terminology:\n * - 정면향하기 (Jeongmyeon Hyanghagi) - Face forward\n * - 몸회전 (Mom Hoejeon) - Body rotation\n * - 머리추적 (Meori Chujok) - Head tracking\n * - 180도회전 (180-do Hoejeon) - 180-degree turn\n *\n * @module systems/animation/BodyFacingSystem\n * @category Animation System\n * @korean 몸향하기시스템\n */\n\nimport { Position } from \"@/types\";\nimport type { BodyFacing } from \"../core/types\";\n\n/**\n * Default rotation speed in degrees per second\n * 45°/sec provides smooth, realistic rotation\n *\n * @korean 기본회전속도\n */\nexport const DEFAULT_ROTATION_SPEED = 45;\n\n/**\n * Maximum torso rotation range in degrees\n * Torso can rotate ±90° from facing direction\n *\n * @korean 최대몸통회전\n */\nexport const MAX_TORSO_ROTATION = 90;\n\n/**\n * Maximum head rotation offset in degrees\n * Head can track independently ±45° from torso\n *\n * @korean 최대머리회전\n */\nexport const MAX_HEAD_ROTATION = 45;\n\n/**\n * Threshold angle for triggering 180° turn animation\n * If angle difference exceeds this, play full turn animation\n *\n * @korean 180도회전기준각도\n */\nexport const TURN_THRESHOLD_ANGLE = 90;\n\n/**\n * Duration of 180° turn animation in milliseconds\n * 12 frames at 60fps = 200ms\n *\n * @korean 회전애니메이션시간\n */\nexport const TURN_ANIMATION_DURATION = 200;\n\n/**\n * Head tracking smoothing factor (0-1)\n * Lower values = smoother but slower head tracking\n * 0.1 = smooth, natural head movement\n *\n * @korean 머리추적부드러움\n */\nexport const HEAD_TRACKING_SMOOTHING = 0.1;\n\n/**\n * Normalizes an angle to 0-360 degree range\n *\n * @param angle - Angle in degrees\n * @returns Normalized angle in 0-360 range\n *\n * @example\n * ```typescript\n * normalizeAngle(370); // Returns 10\n * normalizeAngle(-30); // Returns 330\n * ```\n *\n * @public\n * @korean 각도정규화\n */\nexport function normalizeAngle(angle: number): number {\n let normalized = angle % 360;\n if (normalized < 0) {\n normalized += 360;\n }\n // Handle -0 edge case (JavaScript quirk)\n return normalized === 0 ? 0 : normalized;\n}\n\n/**\n * Calculates the shortest angular difference between two angles\n * Returns value in range [-180, 180]\n * - Positive = clockwise rotation\n * - Negative = counter-clockwise rotation\n *\n * @param from - Starting angle in degrees\n * @param to - Target angle in degrees\n * @returns Shortest angular difference in degrees\n *\n * @example\n * ```typescript\n * calculateAngleDifference(10, 350); // Returns -20 (turn left)\n * calculateAngleDifference(350, 10); // Returns 20 (turn right)\n * calculateAngleDifference(0, 180); // Returns 180\n * ```\n *\n * @public\n * @korean 각도차이계산\n */\nexport function calculateAngleDifference(from: number, to: number): number {\n const fromNorm = normalizeAngle(from);\n const toNorm = normalizeAngle(to);\n\n let diff = toNorm - fromNorm;\n\n // Find shortest path\n if (diff > 180) {\n diff -= 360;\n } else if (diff < -180) {\n diff += 360;\n }\n\n return diff;\n}\n\n/**\n * Calculates angle from one position to another\n * Returns angle in degrees (0-360)\n * - 0° = pointing right (+X)\n * - 90° = pointing down (+Z)\n * - 180° = pointing left (-X)\n * - 270° = pointing up (-Z)\n *\n * @param from - Starting position\n * @param to - Target position\n * @returns Angle in degrees\n *\n * @example\n * ```typescript\n * calculateAngleToTarget({ x: 0, y: 0 }, { x: 1, y: 0 }); // Returns 0° (right)\n * calculateAngleToTarget({ x: 0, y: 0 }, { x: 0, y: 1 }); // Returns 90° (down)\n * ```\n *\n * @public\n * @korean 목표각도계산\n */\nexport function calculateAngleToTarget(from: Position, to: Position): number {\n const dx = to.x - from.x;\n const dz = to.y - from.y; // Position.y is Z coordinate in 2D top-down\n\n // atan2 returns angle in radians, convert to degrees\n // atan2(y, x) where y is forward/back (Z), x is left/right (X)\n const angle = Math.atan2(dz, dx) * (180 / Math.PI);\n\n return normalizeAngle(angle);\n}\n\n/**\n * Linear interpolation between two values\n *\n * @param start - Start value\n * @param end - End value\n * @param t - Interpolation factor (0-1)\n * @returns Interpolated value\n *\n * @private\n * @korean 선형보간\n */\nfunction lerp(start: number, end: number, t: number): number {\n return start + (end - start) * t;\n}\n\n/**\n * Creates default body facing state\n *\n * @param initialAngle - Initial facing angle in degrees (default: 0)\n * @returns Default BodyFacing state\n *\n * @public\n * @korean 기본몸향하기생성\n */\nexport function createDefaultBodyFacing(initialAngle = 0): BodyFacing {\n const initialRadians = (initialAngle * Math.PI) / 180;\n return {\n currentAngle: normalizeAngle(initialAngle),\n targetAngle: normalizeAngle(initialAngle),\n rotationSpeed: DEFAULT_ROTATION_SPEED,\n headAngleOffset: 0,\n isLocked: false,\n isTurning: false,\n torsoRotation: 0, // No initial torso twist\n hipRotation: initialRadians, // Hips aligned with current angle\n };\n}\n\n/**\n * Updates body facing direction with smooth rotation\n *\n * Performs smooth rotation toward target angle at specified speed.\n * Handles:\n * - Rotation locking during attacks\n * - 180° turn animation triggering\n * - Head tracking with independent offset\n * - Smooth interpolation at 45°/sec\n *\n * @param facing - Current body facing state\n * @param targetAngle - Desired facing angle in degrees\n * @param deltaTime - Time elapsed since last update in seconds\n * @param currentTime - Current timestamp in milliseconds\n * @returns Updated body facing state\n *\n * @example\n * ```typescript\n * const facing = createDefaultBodyFacing(0);\n * const updated = updateBodyFacing(facing, 90, 0.016, Date.now());\n * // Rotates ~0.72° toward 90° (45°/sec * 0.016s)\n * ```\n *\n * @public\n * @korean 몸향하기업데이트\n */\nexport function updateBodyFacing(\n facing: BodyFacing,\n targetAngle: number,\n deltaTime: number,\n currentTime: number\n): BodyFacing {\n // If locked, no rotation allowed\n if (facing.isLocked) {\n return facing;\n }\n\n // Check if 180° turn animation is in progress\n if (facing.isTurning && facing.turnStartTime) {\n const elapsed = currentTime - facing.turnStartTime;\n\n if (elapsed >= TURN_ANIMATION_DURATION) {\n // Turn animation complete - snap to target angle\n return {\n ...facing,\n currentAngle: normalizeAngle(targetAngle),\n targetAngle: normalizeAngle(targetAngle),\n headAngleOffset: 0,\n isTurning: false,\n turnDirection: undefined,\n turnStartTime: undefined,\n };\n }\n\n // Still turning - don't update angle yet\n return {\n ...facing,\n targetAngle: normalizeAngle(targetAngle),\n };\n }\n\n // Calculate angle difference\n const angleDiff = calculateAngleDifference(facing.currentAngle, targetAngle);\n\n // Check if 180° turn is needed\n if (Math.abs(angleDiff) > TURN_THRESHOLD_ANGLE && !facing.isTurning) {\n // Trigger 180° turn animation\n return {\n ...facing,\n targetAngle: normalizeAngle(targetAngle),\n isTurning: true,\n turnDirection: angleDiff > 0 ? \"right\" : \"left\",\n turnStartTime: currentTime,\n };\n }\n\n // Calculate maximum rotation for this frame\n const maxRotation = facing.rotationSpeed * deltaTime;\n\n // Calculate actual rotation (limited by max rotation)\n const rotation =\n Math.sign(angleDiff) * Math.min(Math.abs(angleDiff), maxRotation);\n\n // Update current angle\n const newCurrentAngle = normalizeAngle(facing.currentAngle + rotation);\n\n // Update head tracking (±45° range independent of torso)\n // Head smoothly tracks toward target within allowed range\n const remainingDiff = calculateAngleDifference(newCurrentAngle, targetAngle);\n const targetHeadOffset = Math.max(\n -MAX_HEAD_ROTATION,\n Math.min(MAX_HEAD_ROTATION, remainingDiff)\n );\n\n const newHeadOffset = lerp(\n facing.headAngleOffset,\n targetHeadOffset,\n HEAD_TRACKING_SMOOTHING\n );\n\n return {\n ...facing,\n currentAngle: newCurrentAngle,\n targetAngle: normalizeAngle(targetAngle),\n headAngleOffset: newHeadOffset,\n };\n}\n\n/**\n * Updates facing direction to point toward opponent\n *\n * Calculates target angle based on opponent position and updates\n * body facing state with smooth rotation.\n *\n * @param facing - Current body facing state\n * @param playerPosition - Player's current position\n * @param opponentPosition - Opponent's current position\n * @param deltaTime - Time elapsed since last update in seconds\n * @param currentTime - Current timestamp in milliseconds\n * @returns Updated body facing state\n *\n * @example\n * ```typescript\n * const updated = updateFacingTowardOpponent(\n * facing,\n * { x: 100, y: 200 },\n * { x: 300, y: 200 },\n * 0.016,\n * Date.now()\n * );\n * // Faces toward opponent (pointing right in this case)\n * ```\n *\n * @public\n * @korean 상대방향하기업데이트\n */\nexport function updateFacingTowardOpponent(\n facing: BodyFacing,\n playerPosition: Position,\n opponentPosition: Position,\n deltaTime: number,\n currentTime: number\n): BodyFacing {\n const targetAngle = calculateAngleToTarget(playerPosition, opponentPosition);\n return updateBodyFacing(facing, targetAngle, deltaTime, currentTime);\n}\n\n/**\n * Locks facing direction (during attacks/defends)\n *\n * Prevents rotation while attack or defend animation is playing.\n * Maintains current facing angle.\n *\n * @param facing - Current body facing state\n * @returns Updated body facing state with lock enabled\n *\n * @public\n * @korean 회전잠금\n */\nexport function lockFacing(facing: BodyFacing): BodyFacing {\n return {\n ...facing,\n isLocked: true,\n };\n}\n\n/**\n * Unlocks facing direction (after attacks/defends complete)\n *\n * Allows rotation to resume after attack or defend animation completes.\n *\n * @param facing - Current body facing state\n * @returns Updated body facing state with lock disabled\n *\n * @public\n * @korean 회전잠금해제\n */\nexport function unlockFacing(facing: BodyFacing): BodyFacing {\n return {\n ...facing,\n isLocked: false,\n };\n}\n\n/**\n * Checks if character is currently turning (180° animation)\n *\n * @param facing - Current body facing state\n * @returns True if 180° turn animation is in progress\n *\n * @public\n * @korean 회전중확인\n */\nexport function isTurning(facing: BodyFacing): boolean {\n return facing.isTurning;\n}\n\n/**\n * Gets current facing angle in radians\n * Useful for Three.js rotation (expects radians)\n *\n * @param facing - Current body facing state\n * @returns Current facing angle in radians\n *\n * @public\n * @korean 라디안각도\n */\nexport function getFacingAngleRadians(facing: BodyFacing): number {\n return (facing.currentAngle * Math.PI) / 180;\n}\n\n/**\n * Gets head angle in radians including offset\n * Combines torso rotation with head tracking offset\n *\n * @param facing - Current body facing state\n * @returns Head rotation angle in radians\n *\n * @public\n * @korean 머리각도라디안\n */\nexport function getHeadAngleRadians(facing: BodyFacing): number {\n const totalAngle = facing.currentAngle + facing.headAngleOffset;\n return (totalAngle * Math.PI) / 180;\n}\n\n/**\n * Gets torso rotation in radians\n * Returns the torso rotation relative to hips\n *\n * @param facing - Current body facing state\n * @returns Torso rotation in radians (defaults to 0 if not set)\n *\n * @public\n * @korean 허리회전라디안\n */\nexport function getTorsoRotationRadians(facing: BodyFacing): number {\n return facing.torsoRotation ?? 0;\n}\n\n/**\n * Gets hip rotation in radians\n * Returns the hip/pelvis base rotation\n *\n * @param facing - Current body facing state\n * @returns Hip rotation in radians\n *\n * @public\n * @korean 골반회전라디안\n */\nexport function getHipRotationRadians(facing: BodyFacing): number {\n return facing.hipRotation ?? getFacingAngleRadians(facing);\n}\n\n/**\n * Body Facing System singleton for managing character rotation\n *\n * Provides centralized system for body facing calculations and updates.\n *\n * @public\n * @korean 몸향하기시스템\n */\nexport class BodyFacingSystem {\n /**\n * Creates default body facing state for a new player\n *\n * @param initialAngle - Initial facing angle in degrees\n * @returns Default body facing state\n *\n * @public\n * @korean 기본상태생성\n */\n createDefaultState(initialAngle = 0): BodyFacing {\n return createDefaultBodyFacing(initialAngle);\n }\n\n /**\n * Updates body facing with opponent tracking\n *\n * @param facing - Current body facing state\n * @param playerPosition - Player position\n * @param opponentPosition - Opponent position\n * @param deltaTime - Delta time in seconds\n * @param currentTime - Current timestamp\n * @returns Updated body facing state\n *\n * @public\n * @korean 업데이트\n */\n update(\n facing: BodyFacing,\n playerPosition: Position,\n opponentPosition: Position,\n deltaTime: number,\n currentTime: number\n ): BodyFacing {\n return updateFacingTowardOpponent(\n facing,\n playerPosition,\n opponentPosition,\n deltaTime,\n currentTime\n );\n }\n\n /**\n * Locks facing during attacks\n *\n * @param facing - Current body facing state\n * @returns Updated state with lock\n *\n * @public\n * @korean 잠금\n */\n lock(facing: BodyFacing): BodyFacing {\n return lockFacing(facing);\n }\n\n /**\n * Unlocks facing after attacks\n *\n * @param facing - Current body facing state\n * @returns Updated state without lock\n *\n * @public\n * @korean 잠금해제\n */\n unlock(facing: BodyFacing): BodyFacing {\n return unlockFacing(facing);\n }\n}\n\n/**\n * Default body facing system instance\n *\n * @public\n * @korean 기본몸향하기시스템\n */\nexport const bodyFacingSystem = new BodyFacingSystem();\n\nexport default bodyFacingSystem;\n"],"mappings":";;;;;;;AAsEA,IAAa,0BAA0B;;;;;;;;;;;;;;;;AAiBvC,SAAgB,eAAe,OAAuB;CACpD,IAAI,aAAa,QAAQ;CACzB,IAAI,aAAa,GACf,cAAc;CAGhB,OAAO,eAAe,IAAI,IAAI;;;;;;;;;;;;;;;;;;;;;;AAuBhC,SAAgB,yBAAyB,MAAc,IAAoB;CACzE,MAAM,WAAW,eAAe,KAAK;CAGrC,IAAI,OAFW,eAAe,GAEnB,GAAS;CAGpB,IAAI,OAAO,KACT,QAAQ;MACH,IAAI,OAAO,MAChB,QAAQ;CAGV,OAAO;;;;;;;;;;;;;;;;;;;;;;;AAwBT,SAAgB,uBAAuB,MAAgB,IAAsB;CAC3E,MAAM,KAAK,GAAG,IAAI,KAAK;CACvB,MAAM,KAAK,GAAG,IAAI,KAAK;CAMvB,OAAO,eAFO,KAAK,MAAM,IAAI,GAAG,IAAI,MAAM,KAAK,IAEnB;;;;;;;;;;;;;AAc9B,SAAS,KAAK,OAAe,KAAa,GAAmB;CAC3D,OAAO,SAAS,MAAM,SAAS;;;;;;;;;;;AAYjC,SAAgB,wBAAwB,eAAe,GAAe;CACpE,MAAM,iBAAkB,eAAe,KAAK,KAAM;CAClD,OAAO;EACL,cAAc,eAAe,aAAa;EAC1C,aAAa,eAAe,aAAa;EACzC,eAAA;EACA,iBAAiB;EACjB,UAAU;EACV,WAAW;EACX,eAAe;EACf,aAAa;EACd;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,SAAgB,iBACd,QACA,aACA,WACA,aACY;CAEZ,IAAI,OAAO,UACT,OAAO;CAIT,IAAI,OAAO,aAAa,OAAO,eAAe;EAG5C,IAFgB,cAAc,OAAO,iBAAA,KAInC,OAAO;GACL,GAAG;GACH,cAAc,eAAe,YAAY;GACzC,aAAa,eAAe,YAAY;GACxC,iBAAiB;GACjB,WAAW;GACX,eAAe,KAAA;GACf,eAAe,KAAA;GAChB;EAIH,OAAO;GACL,GAAG;GACH,aAAa,eAAe,YAAY;GACzC;;CAIH,MAAM,YAAY,yBAAyB,OAAO,cAAc,YAAY;CAG5E,IAAI,KAAK,IAAI,UAAU,GAAA,MAA2B,CAAC,OAAO,WAExD,OAAO;EACL,GAAG;EACH,aAAa,eAAe,YAAY;EACxC,WAAW;EACX,eAAe,YAAY,IAAI,UAAU;EACzC,eAAe;EAChB;CAIH,MAAM,cAAc,OAAO,gBAAgB;CAG3C,MAAM,WACJ,KAAK,KAAK,UAAU,GAAG,KAAK,IAAI,KAAK,IAAI,UAAU,EAAE,YAAY;CAGnE,MAAM,kBAAkB,eAAe,OAAO,eAAe,SAAS;CAItE,MAAM,gBAAgB,yBAAyB,iBAAiB,YAAY;CAC5E,MAAM,mBAAmB,KAAK,IAC5B,KACA,KAAK,IAAA,IAAuB,cAAc,CAC3C;CAED,MAAM,gBAAgB,KACpB,OAAO,iBACP,kBACA,wBACD;CAED,OAAO;EACL,GAAG;EACH,cAAc;EACd,aAAa,eAAe,YAAY;EACxC,iBAAiB;EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BH,SAAgB,2BACd,QACA,gBACA,kBACA,WACA,aACY;CAEZ,OAAO,iBAAiB,QADJ,uBAAuB,gBAAgB,iBAC3B,EAAa,WAAW,YAAY;;;;;;;;;;;;;;AAetE,SAAgB,WAAW,QAAgC;CACzD,OAAO;EACL,GAAG;EACH,UAAU;EACX;;;;;;;;;;;;;AAcH,SAAgB,aAAa,QAAgC;CAC3D,OAAO;EACL,GAAG;EACH,UAAU;EACX;;;;;;;;;;;;AAwCH,SAAgB,oBAAoB,QAA4B;CAE9D,QADmB,OAAO,eAAe,OAAO,mBAC3B,KAAK,KAAM;;;;;;;;;;AAuClC,IAAa,mBAAb,MAA8B;;;;;;;;;;CAU5B,mBAAmB,eAAe,GAAe;EAC/C,OAAO,wBAAwB,aAAa;;;;;;;;;;;;;;;CAgB9C,OACE,QACA,gBACA,kBACA,WACA,aACY;EACZ,OAAO,2BACL,QACA,gBACA,kBACA,WACA,YACD;;;;;;;;;;;CAYH,KAAK,QAAgC;EACnC,OAAO,WAAW,OAAO;;;;;;;;;;;CAY3B,OAAO,QAAgC;EACrC,OAAO,aAAa,OAAO;;;AAUC,IAAI,kBAAkB"}
1
+ {"version":3,"file":"BodyFacingSystem.js","names":[],"sources":["../../../../src/systems/animation/systems/BodyFacingSystem.ts"],"sourcesContent":["/**\n * Body Facing Direction System for Black Trigram\n *\n * Manages automatic character rotation to face opponent with:\n * - Smooth torso rotation at 45°/sec (±90° range)\n * - Independent head tracking (±45° range)\n * - 180° turn animations for repositioning\n * - Facing lock during attack/defend animations\n *\n * Korean terminology:\n * - 정면향하기 (Jeongmyeon Hyanghagi) - Face forward\n * - 몸회전 (Mom Hoejeon) - Body rotation\n * - 머리추적 (Meori Chujok) - Head tracking\n * - 180도회전 (180-do Hoejeon) - 180-degree turn\n *\n * @module systems/animation/BodyFacingSystem\n * @category Animation System\n * @korean 몸향하기시스템\n */\n\nimport { Position } from \"@/types\";\nimport type { BodyFacing } from \"../core/types\";\n\n/**\n * Default rotation speed in degrees per second\n * 45°/sec provides smooth, realistic rotation\n *\n * @korean 기본회전속도\n */\nexport const DEFAULT_ROTATION_SPEED = 45;\n\n/**\n * Maximum torso rotation range in degrees\n * Torso can rotate ±90° from facing direction\n *\n * @korean 최대몸통회전\n */\nexport const MAX_TORSO_ROTATION = 90;\n\n/**\n * Maximum head rotation offset in degrees\n * Head can track independently ±45° from torso\n *\n * @korean 최대머리회전\n */\nexport const MAX_HEAD_ROTATION = 45;\n\n/**\n * Threshold angle for triggering 180° turn animation\n * If angle difference exceeds this, play full turn animation\n *\n * @korean 180도회전기준각도\n */\nexport const TURN_THRESHOLD_ANGLE = 90;\n\n/**\n * Duration of 180° turn animation in milliseconds\n * 12 frames at 60fps = 200ms\n *\n * @korean 회전애니메이션시간\n */\nexport const TURN_ANIMATION_DURATION = 200;\n\n/**\n * Head tracking smoothing factor (0-1)\n * Lower values = smoother but slower head tracking\n * 0.1 = smooth, natural head movement\n *\n * @korean 머리추적부드러움\n */\nexport const HEAD_TRACKING_SMOOTHING = 0.1;\n\n/**\n * Normalizes an angle to 0-360 degree range\n *\n * @param angle - Angle in degrees\n * @returns Normalized angle in 0-360 range\n *\n * @example\n * ```typescript\n * normalizeAngle(370); // Returns 10\n * normalizeAngle(-30); // Returns 330\n * ```\n *\n * @korean 각도정규화\n */\nexport function normalizeAngle(angle: number): number {\n let normalized = angle % 360;\n if (normalized < 0) {\n normalized += 360;\n }\n // Handle -0 edge case (JavaScript quirk)\n return normalized === 0 ? 0 : normalized;\n}\n\n/**\n * Calculates the shortest angular difference between two angles\n * Returns value in range [-180, 180]\n * - Positive = clockwise rotation\n * - Negative = counter-clockwise rotation\n *\n * @param from - Starting angle in degrees\n * @param to - Target angle in degrees\n * @returns Shortest angular difference in degrees\n *\n * @example\n * ```typescript\n * calculateAngleDifference(10, 350); // Returns -20 (turn left)\n * calculateAngleDifference(350, 10); // Returns 20 (turn right)\n * calculateAngleDifference(0, 180); // Returns 180\n * ```\n *\n * @korean 각도차이계산\n */\nexport function calculateAngleDifference(from: number, to: number): number {\n const fromNorm = normalizeAngle(from);\n const toNorm = normalizeAngle(to);\n\n let diff = toNorm - fromNorm;\n\n // Find shortest path\n if (diff > 180) {\n diff -= 360;\n } else if (diff < -180) {\n diff += 360;\n }\n\n return diff;\n}\n\n/**\n * Calculates angle from one position to another\n * Returns angle in degrees (0-360)\n * - 0° = pointing right (+X)\n * - 90° = pointing down (+Z)\n * - 180° = pointing left (-X)\n * - 270° = pointing up (-Z)\n *\n * @param from - Starting position\n * @param to - Target position\n * @returns Angle in degrees\n *\n * @example\n * ```typescript\n * calculateAngleToTarget({ x: 0, y: 0 }, { x: 1, y: 0 }); // Returns 0° (right)\n * calculateAngleToTarget({ x: 0, y: 0 }, { x: 0, y: 1 }); // Returns 90° (down)\n * ```\n *\n * @korean 목표각도계산\n */\nexport function calculateAngleToTarget(from: Position, to: Position): number {\n const dx = to.x - from.x;\n const dz = to.y - from.y; // Position.y is Z coordinate in 2D top-down\n\n // atan2 returns angle in radians, convert to degrees\n // atan2(y, x) where y is forward/back (Z), x is left/right (X)\n const angle = Math.atan2(dz, dx) * (180 / Math.PI);\n\n return normalizeAngle(angle);\n}\n\n/**\n * Linear interpolation between two values\n *\n * @param start - Start value\n * @param end - End value\n * @param t - Interpolation factor (0-1)\n * @returns Interpolated value\n *\n * @private\n * @korean 선형보간\n */\nfunction lerp(start: number, end: number, t: number): number {\n return start + (end - start) * t;\n}\n\n/**\n * Creates default body facing state\n *\n * @param initialAngle - Initial facing angle in degrees (default: 0)\n * @returns Default BodyFacing state\n *\n * @korean 기본몸향하기생성\n */\nexport function createDefaultBodyFacing(initialAngle = 0): BodyFacing {\n const initialRadians = (initialAngle * Math.PI) / 180;\n return {\n currentAngle: normalizeAngle(initialAngle),\n targetAngle: normalizeAngle(initialAngle),\n rotationSpeed: DEFAULT_ROTATION_SPEED,\n headAngleOffset: 0,\n isLocked: false,\n isTurning: false,\n torsoRotation: 0, // No initial torso twist\n hipRotation: initialRadians, // Hips aligned with current angle\n };\n}\n\n/**\n * Updates body facing direction with smooth rotation\n *\n * Performs smooth rotation toward target angle at specified speed.\n * Handles:\n * - Rotation locking during attacks\n * - 180° turn animation triggering\n * - Head tracking with independent offset\n * - Smooth interpolation at 45°/sec\n *\n * @param facing - Current body facing state\n * @param targetAngle - Desired facing angle in degrees\n * @param deltaTime - Time elapsed since last update in seconds\n * @param currentTime - Current timestamp in milliseconds\n * @returns Updated body facing state\n *\n * @example\n * ```typescript\n * const facing = createDefaultBodyFacing(0);\n * const updated = updateBodyFacing(facing, 90, 0.016, Date.now());\n * // Rotates ~0.72° toward 90° (45°/sec * 0.016s)\n * ```\n *\n * @korean 몸향하기업데이트\n */\nexport function updateBodyFacing(\n facing: BodyFacing,\n targetAngle: number,\n deltaTime: number,\n currentTime: number\n): BodyFacing {\n // If locked, no rotation allowed\n if (facing.isLocked) {\n return facing;\n }\n\n // Check if 180° turn animation is in progress\n if (facing.isTurning && facing.turnStartTime) {\n const elapsed = currentTime - facing.turnStartTime;\n\n if (elapsed >= TURN_ANIMATION_DURATION) {\n // Turn animation complete - snap to target angle\n return {\n ...facing,\n currentAngle: normalizeAngle(targetAngle),\n targetAngle: normalizeAngle(targetAngle),\n headAngleOffset: 0,\n isTurning: false,\n turnDirection: undefined,\n turnStartTime: undefined,\n };\n }\n\n // Still turning - don't update angle yet\n return {\n ...facing,\n targetAngle: normalizeAngle(targetAngle),\n };\n }\n\n // Calculate angle difference\n const angleDiff = calculateAngleDifference(facing.currentAngle, targetAngle);\n\n // Check if 180° turn is needed\n if (Math.abs(angleDiff) > TURN_THRESHOLD_ANGLE && !facing.isTurning) {\n // Trigger 180° turn animation\n return {\n ...facing,\n targetAngle: normalizeAngle(targetAngle),\n isTurning: true,\n turnDirection: angleDiff > 0 ? \"right\" : \"left\",\n turnStartTime: currentTime,\n };\n }\n\n // Calculate maximum rotation for this frame\n const maxRotation = facing.rotationSpeed * deltaTime;\n\n // Calculate actual rotation (limited by max rotation)\n const rotation =\n Math.sign(angleDiff) * Math.min(Math.abs(angleDiff), maxRotation);\n\n // Update current angle\n const newCurrentAngle = normalizeAngle(facing.currentAngle + rotation);\n\n // Update head tracking (±45° range independent of torso)\n // Head smoothly tracks toward target within allowed range\n const remainingDiff = calculateAngleDifference(newCurrentAngle, targetAngle);\n const targetHeadOffset = Math.max(\n -MAX_HEAD_ROTATION,\n Math.min(MAX_HEAD_ROTATION, remainingDiff)\n );\n\n const newHeadOffset = lerp(\n facing.headAngleOffset,\n targetHeadOffset,\n HEAD_TRACKING_SMOOTHING\n );\n\n return {\n ...facing,\n currentAngle: newCurrentAngle,\n targetAngle: normalizeAngle(targetAngle),\n headAngleOffset: newHeadOffset,\n };\n}\n\n/**\n * Updates facing direction to point toward opponent\n *\n * Calculates target angle based on opponent position and updates\n * body facing state with smooth rotation.\n *\n * @param facing - Current body facing state\n * @param playerPosition - Player's current position\n * @param opponentPosition - Opponent's current position\n * @param deltaTime - Time elapsed since last update in seconds\n * @param currentTime - Current timestamp in milliseconds\n * @returns Updated body facing state\n *\n * @example\n * ```typescript\n * const updated = updateFacingTowardOpponent(\n * facing,\n * { x: 100, y: 200 },\n * { x: 300, y: 200 },\n * 0.016,\n * Date.now()\n * );\n * // Faces toward opponent (pointing right in this case)\n * ```\n *\n * @korean 상대방향하기업데이트\n */\nexport function updateFacingTowardOpponent(\n facing: BodyFacing,\n playerPosition: Position,\n opponentPosition: Position,\n deltaTime: number,\n currentTime: number\n): BodyFacing {\n const targetAngle = calculateAngleToTarget(playerPosition, opponentPosition);\n return updateBodyFacing(facing, targetAngle, deltaTime, currentTime);\n}\n\n/**\n * Locks facing direction (during attacks/defends)\n *\n * Prevents rotation while attack or defend animation is playing.\n * Maintains current facing angle.\n *\n * @param facing - Current body facing state\n * @returns Updated body facing state with lock enabled\n *\n * @korean 회전잠금\n */\nexport function lockFacing(facing: BodyFacing): BodyFacing {\n return {\n ...facing,\n isLocked: true,\n };\n}\n\n/**\n * Unlocks facing direction (after attacks/defends complete)\n *\n * Allows rotation to resume after attack or defend animation completes.\n *\n * @param facing - Current body facing state\n * @returns Updated body facing state with lock disabled\n *\n * @korean 회전잠금해제\n */\nexport function unlockFacing(facing: BodyFacing): BodyFacing {\n return {\n ...facing,\n isLocked: false,\n };\n}\n\n/**\n * Checks if character is currently turning (180° animation)\n *\n * @param facing - Current body facing state\n * @returns True if 180° turn animation is in progress\n *\n * @korean 회전중확인\n */\nexport function isTurning(facing: BodyFacing): boolean {\n return facing.isTurning;\n}\n\n/**\n * Gets current facing angle in radians\n * Useful for Three.js rotation (expects radians)\n *\n * @param facing - Current body facing state\n * @returns Current facing angle in radians\n *\n * @korean 라디안각도\n */\nexport function getFacingAngleRadians(facing: BodyFacing): number {\n return (facing.currentAngle * Math.PI) / 180;\n}\n\n/**\n * Gets head angle in radians including offset\n * Combines torso rotation with head tracking offset\n *\n * @param facing - Current body facing state\n * @returns Head rotation angle in radians\n *\n * @korean 머리각도라디안\n */\nexport function getHeadAngleRadians(facing: BodyFacing): number {\n const totalAngle = facing.currentAngle + facing.headAngleOffset;\n return (totalAngle * Math.PI) / 180;\n}\n\n/**\n * Gets torso rotation in radians\n * Returns the torso rotation relative to hips\n *\n * @param facing - Current body facing state\n * @returns Torso rotation in radians (defaults to 0 if not set)\n *\n * @korean 허리회전라디안\n */\nexport function getTorsoRotationRadians(facing: BodyFacing): number {\n return facing.torsoRotation ?? 0;\n}\n\n/**\n * Gets hip rotation in radians\n * Returns the hip/pelvis base rotation\n *\n * @param facing - Current body facing state\n * @returns Hip rotation in radians\n *\n * @korean 골반회전라디안\n */\nexport function getHipRotationRadians(facing: BodyFacing): number {\n return facing.hipRotation ?? getFacingAngleRadians(facing);\n}\n\n/**\n * Body Facing System singleton for managing character rotation\n *\n * Provides centralized system for body facing calculations and updates.\n *\n * @korean 몸향하기시스템\n */\nexport class BodyFacingSystem {\n /**\n * Creates default body facing state for a new player\n *\n * @param initialAngle - Initial facing angle in degrees\n * @returns Default body facing state\n *\n * @korean 기본상태생성\n */\n createDefaultState(initialAngle = 0): BodyFacing {\n return createDefaultBodyFacing(initialAngle);\n }\n\n /**\n * Updates body facing with opponent tracking\n *\n * @param facing - Current body facing state\n * @param playerPosition - Player position\n * @param opponentPosition - Opponent position\n * @param deltaTime - Delta time in seconds\n * @param currentTime - Current timestamp\n * @returns Updated body facing state\n *\n * @korean 업데이트\n */\n update(\n facing: BodyFacing,\n playerPosition: Position,\n opponentPosition: Position,\n deltaTime: number,\n currentTime: number\n ): BodyFacing {\n return updateFacingTowardOpponent(\n facing,\n playerPosition,\n opponentPosition,\n deltaTime,\n currentTime\n );\n }\n\n /**\n * Locks facing during attacks\n *\n * @param facing - Current body facing state\n * @returns Updated state with lock\n *\n * @korean 잠금\n */\n lock(facing: BodyFacing): BodyFacing {\n return lockFacing(facing);\n }\n\n /**\n * Unlocks facing after attacks\n *\n * @param facing - Current body facing state\n * @returns Updated state without lock\n *\n * @korean 잠금해제\n */\n unlock(facing: BodyFacing): BodyFacing {\n return unlockFacing(facing);\n }\n}\n\n/**\n * Default body facing system instance\n *\n * @korean 기본몸향하기시스템\n */\nexport const bodyFacingSystem = new BodyFacingSystem();\n\nexport default bodyFacingSystem;\n"],"mappings":";;;;;;;AAsEA,IAAa,0BAA0B;;;;;;;;;;;;;;;AAgBvC,SAAgB,eAAe,OAAuB;CACpD,IAAI,aAAa,QAAQ;CACzB,IAAI,aAAa,GACf,cAAc;CAGhB,OAAO,eAAe,IAAI,IAAI;;;;;;;;;;;;;;;;;;;;;AAsBhC,SAAgB,yBAAyB,MAAc,IAAoB;CACzE,MAAM,WAAW,eAAe,KAAK;CAGrC,IAAI,OAFW,eAAe,GAEnB,GAAS;CAGpB,IAAI,OAAO,KACT,QAAQ;MACH,IAAI,OAAO,MAChB,QAAQ;CAGV,OAAO;;;;;;;;;;;;;;;;;;;;;;AAuBT,SAAgB,uBAAuB,MAAgB,IAAsB;CAC3E,MAAM,KAAK,GAAG,IAAI,KAAK;CACvB,MAAM,KAAK,GAAG,IAAI,KAAK;CAMvB,OAAO,eAFO,KAAK,MAAM,IAAI,GAAG,IAAI,MAAM,KAAK,IAEnB;;;;;;;;;;;;;AAc9B,SAAS,KAAK,OAAe,KAAa,GAAmB;CAC3D,OAAO,SAAS,MAAM,SAAS;;;;;;;;;;AAWjC,SAAgB,wBAAwB,eAAe,GAAe;CACpE,MAAM,iBAAkB,eAAe,KAAK,KAAM;CAClD,OAAO;EACL,cAAc,eAAe,aAAa;EAC1C,aAAa,eAAe,aAAa;EACzC,eAAA;EACA,iBAAiB;EACjB,UAAU;EACV,WAAW;EACX,eAAe;EACf,aAAa;EACd;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,SAAgB,iBACd,QACA,aACA,WACA,aACY;CAEZ,IAAI,OAAO,UACT,OAAO;CAIT,IAAI,OAAO,aAAa,OAAO,eAAe;EAG5C,IAFgB,cAAc,OAAO,iBAAA,KAInC,OAAO;GACL,GAAG;GACH,cAAc,eAAe,YAAY;GACzC,aAAa,eAAe,YAAY;GACxC,iBAAiB;GACjB,WAAW;GACX,eAAe,KAAA;GACf,eAAe,KAAA;GAChB;EAIH,OAAO;GACL,GAAG;GACH,aAAa,eAAe,YAAY;GACzC;;CAIH,MAAM,YAAY,yBAAyB,OAAO,cAAc,YAAY;CAG5E,IAAI,KAAK,IAAI,UAAU,GAAA,MAA2B,CAAC,OAAO,WAExD,OAAO;EACL,GAAG;EACH,aAAa,eAAe,YAAY;EACxC,WAAW;EACX,eAAe,YAAY,IAAI,UAAU;EACzC,eAAe;EAChB;CAIH,MAAM,cAAc,OAAO,gBAAgB;CAG3C,MAAM,WACJ,KAAK,KAAK,UAAU,GAAG,KAAK,IAAI,KAAK,IAAI,UAAU,EAAE,YAAY;CAGnE,MAAM,kBAAkB,eAAe,OAAO,eAAe,SAAS;CAItE,MAAM,gBAAgB,yBAAyB,iBAAiB,YAAY;CAC5E,MAAM,mBAAmB,KAAK,IAC5B,KACA,KAAK,IAAA,IAAuB,cAAc,CAC3C;CAED,MAAM,gBAAgB,KACpB,OAAO,iBACP,kBACA,wBACD;CAED,OAAO;EACL,GAAG;EACH,cAAc;EACd,aAAa,eAAe,YAAY;EACxC,iBAAiB;EAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,SAAgB,2BACd,QACA,gBACA,kBACA,WACA,aACY;CAEZ,OAAO,iBAAiB,QADJ,uBAAuB,gBAAgB,iBAC3B,EAAa,WAAW,YAAY;;;;;;;;;;;;;AActE,SAAgB,WAAW,QAAgC;CACzD,OAAO;EACL,GAAG;EACH,UAAU;EACX;;;;;;;;;;;;AAaH,SAAgB,aAAa,QAAgC;CAC3D,OAAO;EACL,GAAG;EACH,UAAU;EACX;;;;;;;;;;;AAqCH,SAAgB,oBAAoB,QAA4B;CAE9D,QADmB,OAAO,eAAe,OAAO,mBAC3B,KAAK,KAAM;;;;;;;;;AAoClC,IAAa,mBAAb,MAA8B;;;;;;;;;CAS5B,mBAAmB,eAAe,GAAe;EAC/C,OAAO,wBAAwB,aAAa;;;;;;;;;;;;;;CAe9C,OACE,QACA,gBACA,kBACA,WACA,aACY;EACZ,OAAO,2BACL,QACA,gBACA,kBACA,WACA,YACD;;;;;;;;;;CAWH,KAAK,QAAgC;EACnC,OAAO,WAAW,OAAO;;;;;;;;;;CAW3B,OAAO,QAAgC;EACrC,OAAO,aAAa,OAAO;;;AASC,IAAI,kBAAkB"}
@@ -14,7 +14,6 @@ import { FacialExpression, type ExpressionState, type FacialDamageState } from "
14
14
  /**
15
15
  * Expression transition configuration
16
16
  *
17
- * @public
18
17
  * @korean 표정전환설정
19
18
  */
20
19
  export interface ExpressionTransitionConfig {
@@ -28,7 +27,6 @@ export interface ExpressionTransitionConfig {
28
27
  /**
29
28
  * Default expression transition configuration
30
29
  *
31
- * @public
32
30
  * @korean 기본표정전환설정
33
31
  */
34
32
  export declare const DEFAULT_TRANSITION_CONFIG: ExpressionTransitionConfig;
@@ -67,7 +65,6 @@ export declare const DEFAULT_TRANSITION_CONFIG: ExpressionTransitionConfig;
67
65
  * // Returns: FacialExpression.VICTORIOUS
68
66
  * ```
69
67
  *
70
- * @public
71
68
  * @korean 전투상태로부터표정가져오기
72
69
  */
73
70
  export declare const getExpressionFromCombatState: (health: number, maxHealth: number, stamina: number, _pain: number, // Reserved for future intensity calculation
@@ -80,7 +77,6 @@ consciousness: number, justHit: boolean, justLanded: boolean) => FacialExpressio
80
77
  * @param transitionTime - Time to transition (seconds)
81
78
  * @returns New expression state with transition initialized
82
79
  *
83
- * @public
84
80
  * @korean 새표정상태생성
85
81
  */
86
82
  export declare const createExpressionTransition: (currentState: ExpressionState, newExpression: FacialExpression, transitionTime?: number) => ExpressionState;
@@ -91,7 +87,6 @@ export declare const createExpressionTransition: (currentState: ExpressionState,
91
87
  * @param deltaTime - Time since last update (seconds)
92
88
  * @returns Updated expression state with transition progress
93
89
  *
94
- * @public
95
90
  * @korean 표정상태업데이트
96
91
  */
97
92
  export declare const updateExpressionState: (state: ExpressionState, deltaTime: number) => ExpressionState;
@@ -116,7 +111,6 @@ export declare const updateExpressionState: (state: ExpressionState, deltaTime:
116
111
  * // Returns damage state with left eye swelling increased
117
112
  * ```
118
113
  *
119
- * @public
120
114
  * @korean 얼굴손상계산
121
115
  */
122
116
  export declare const calculateFacialDamage: (currentDamage: FacialDamageState, hitLocation: string, damageAmount: number) => FacialDamageState;
@@ -127,7 +121,6 @@ export declare const calculateFacialDamage: (currentDamage: FacialDamageState, h
127
121
  * @param resetPercentage - Percentage to reduce damage (0-1)
128
122
  * @returns Fresh facial damage state
129
123
  *
130
- * @public
131
124
  * @korean 얼굴손상초기화
132
125
  */
133
126
  export declare const resetFacialDamage: (currentDamage: FacialDamageState, partialReset?: boolean, resetPercentage?: number) => FacialDamageState;
@@ -142,7 +135,6 @@ export declare const resetFacialDamage: (currentDamage: FacialDamageState, parti
142
135
  * @param stamina - Stamina level (0-100)
143
136
  * @returns Expression intensity (0-1)
144
137
  *
145
- * @public
146
138
  * @korean 표정강도가져오기
147
139
  */
148
140
  export declare const getExpressionIntensity: (expression: FacialExpression, pain: number, stamina: number) => number;
@@ -151,7 +143,6 @@ export declare const getExpressionIntensity: (expression: FacialExpression, pain
151
143
  *
152
144
  * @returns Default neutral expression state
153
145
  *
154
- * @public
155
146
  * @korean 기본표정상태생성
156
147
  */
157
148
  export declare const createDefaultExpressionState: () => ExpressionState;
@@ -160,7 +151,6 @@ export declare const createDefaultExpressionState: () => ExpressionState;
160
151
  *
161
152
  * @returns Default facial damage state with no damage
162
153
  *
163
- * @public
164
154
  * @korean 기본얼굴손상생성
165
155
  */
166
156
  export declare const createDefaultFacialDamage: () => FacialDamageState;
@@ -1 +1 @@
1
- {"version":3,"file":"FacialExpressions.d.ts","sourceRoot":"","sources":["../../../../src/systems/animation/systems/FacialExpressions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAGvB,MAAM,gBAAgB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAEvC,oDAAoD;IACpD,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAErC,+CAA+C;IAC/C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,0BAIvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,OAAO,MAAM,EAAE,4CAA4C;AAC3D,eAAe,MAAM,EACrB,SAAS,OAAO,EAChB,YAAY,OAAO,KAClB,gBA6BF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,eAAe,EAC7B,eAAe,gBAAgB,EAC/B,iBAAiB,MAAM,KACtB,eAaF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,eAAe,EACtB,WAAW,MAAM,KAChB,eA0BF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,qBAAqB,GAChC,eAAe,iBAAiB,EAChC,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,iBA2FF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAC5B,eAAe,iBAAiB,EAChC,sBAAoB,EACpB,wBAAqB,KACpB,iBAkBF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,gBAAgB,EAC5B,MAAM,MAAM,EACZ,SAAS,MAAM,KACd,MA2BF,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,4BAA4B,QAAO,eAE/C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,yBAAyB,QAAO,iBAE5C,CAAC"}
1
+ {"version":3,"file":"FacialExpressions.d.ts","sourceRoot":"","sources":["../../../../src/systems/animation/systems/FacialExpressions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EAGvB,MAAM,gBAAgB,CAAC;AAExB;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,yCAAyC;IACzC,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IAEvC,oDAAoD;IACpD,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IAErC,+CAA+C;IAC/C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,0BAIvC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,OAAO,MAAM,EAAE,4CAA4C;AAC3D,eAAe,MAAM,EACrB,SAAS,OAAO,EAChB,YAAY,OAAO,KAClB,gBA6BF,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,0BAA0B,GACrC,cAAc,eAAe,EAC7B,eAAe,gBAAgB,EAC/B,iBAAiB,MAAM,KACtB,eAaF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,eAAe,EACtB,WAAW,MAAM,KAChB,eA0BF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,qBAAqB,GAChC,eAAe,iBAAiB,EAChC,aAAa,MAAM,EACnB,cAAc,MAAM,KACnB,iBA2FF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAC5B,eAAe,iBAAiB,EAChC,sBAAoB,EACpB,wBAAqB,KACpB,iBAkBF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,YAAY,gBAAgB,EAC5B,MAAM,MAAM,EACZ,SAAS,MAAM,KACd,MA2BF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAO,eAE/C,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,QAAO,iBAE5C,CAAC"}
@@ -47,7 +47,6 @@ import { DEFAULT_FACIAL_DAMAGE, FacialExpression } from "../../../types/facial.j
47
47
  * // Returns: FacialExpression.VICTORIOUS
48
48
  * ```
49
49
  *
50
- * @public
51
50
  * @korean 전투상태로부터표정가져오기
52
51
  */
53
52
  var getExpressionFromCombatState = (health, maxHealth, stamina, _pain, consciousness, justHit, justLanded) => {
@@ -64,7 +63,6 @@ var getExpressionFromCombatState = (health, maxHealth, stamina, _pain, conscious
64
63
  *
65
64
  * @returns Default facial damage state with no damage
66
65
  *
67
- * @public
68
66
  * @korean 기본얼굴손상생성
69
67
  */
70
68
  var createDefaultFacialDamage = () => {