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

    Class MuscleActivationManager

    Muscle activation manager for real-time combat physiology

    Manages 60fps muscle tension updates, stamina effects, and smooth transitions. Optimized for performance with ref-based updates to avoid React re-renders.

    근육활성화관리자

    Index

    Constructors

    Methods

    • Dispose of the muscle activation system

      Clears all internal state and references to prevent memory leaks. Should be called when the system is no longer needed (e.g., component unmount).

      Returns void

      근육시스템해제

    • Get reusable scratch map with current tension values for state sync

      Populates and returns a reusable Map to avoid allocations during state sync. This map is cleared and repopulated on each call.

      Returns Map<string, number>

      Reusable Map with current tension values

      상태동기화맵가져오기

    • Gradually relax all muscles to idle state

      Used after technique completion with configurable delay.

      Parameters

      • delta: number

        Time since last frame in seconds

      Returns void

      근육이완

    • Update muscle activations for a technique at 60fps

      Parameters

      • technique: string

        Technique name

      • stamina: number

        Current stamina (0-100)

      • delta: number

        Time since last frame in seconds

      Returns void

      업데이트

    Properties

    scratchMap: Map<string, number>