All files / systems/animation/systems index.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114                                                                                                                                                                                                                                   
/**
 * Runtime animation systems sub-package
 *
 * Facial expressions, head and body tracking, advanced joint movement helpers,
 * fall handling, and recovery visualizations.
 */
 
export {
  calculateFacialDamage,
  createDefaultExpressionState,
  createDefaultFacialDamage,
  createExpressionTransition,
  DEFAULT_TRANSITION_CONFIG,
  getExpressionFromCombatState,
  getExpressionIntensity,
  resetFacialDamage,
  updateExpressionState,
} from "./FacialExpressions";
export type { ExpressionTransitionConfig } from "./FacialExpressions";
 
export {
  applyHeadMovementKeyframe,
  calculateSmoothHeadRotation,
  createHeadDropAnimation,
  createHeadNodAnimation,
  createHeadRecoilAnimation,
  createHeadShakeAnimation,
  createHeadTiltAnimation,
  createHeadTurnAnimation,
  getHeadMovementByType,
  isHeadMovementComplete,
} from "./HeadMovements";
 
export {
  determineFallDirection,
  determineFallFromStance,
  FALL_BACKWARD_KEYFRAMES,
  FALL_FORWARD_KEYFRAMES,
  FALL_IMPACT_FRAMES,
  FALL_SIDE_KEYFRAMES,
  getFallKeyframes,
  getImpactFrame,
} from "./FallAnimations";
 
export {
  BodyFacingSystem,
  bodyFacingSystem,
  calculateAngleDifference,
  calculateAngleToTarget,
  createDefaultBodyFacing,
  DEFAULT_ROTATION_SPEED,
  getFacingAngleRadians,
  getHeadAngleRadians,
  getHipRotationRadians,
  getTorsoRotationRadians,
  HEAD_TRACKING_SMOOTHING,
  isTurning,
  lockFacing,
  MAX_HEAD_ROTATION,
  MAX_TORSO_ROTATION,
  normalizeAngle,
  TURN_ANIMATION_DURATION,
  TURN_THRESHOLD_ANGLE,
  unlockFacing,
  updateBodyFacing,
  updateFacingTowardOpponent,
} from "./BodyFacingSystem";
 
export {
  ADVANCED_JOINT_CONSTRAINTS,
  applyHipRotationToEuler,
  calculateAnkleArticulation,
  calculateHipRotationForKick,
  calculateKickPowerFromHipRotation,
  calculateKneeDrive,
  calculateKneeStrikePowerModifier,
  calculateShoulderElevation,
  calculateSpinalFlexion,
  calculateWristSnap,
  calculateWristSnapPowerModifier,
} from "./AdvancedJointMovements";
export type {
  AnkleArticulationState,
  BodySide,
  HandStrikeType,
  HipRotationState,
  KickHeight,
  KickType,
  KneeDriveState,
  KneePhase,
  KneeTechniqueType,
  ShoulderElevationState,
  ShoulderPhase,
  ShoulderTechniqueType,
  SpinalFlexionState,
  SpinalMovementType,
  StrikePhase,
  TechniquePhase,
  WristSnapState,
} from "./AdvancedJointMovements";
 
export {
  compareRecoveryPhases,
  generateRecoveryVisualization,
  generateTensionChart,
  printRecoveryAnalysis,
} from "./RecoveryVisualization";
export type {
  RecoveryTimelinePoint,
  RecoveryVisualization,
} from "./RecoveryVisualization";
 
export * from "./MuscleActivation";