file: HearingSenseComponent.aus

class: HearingSenseComponent

[22:7] extends: Component

Wraps FXGL's HearingSenseComponent (com.almasb.fxgl.ai.senseai.HearingSenseComponent), a per- entity AI sense that converts incoming noise events into a SenseAIState (CALM / ALERT / AGGRESSIVE). The entity's state rises with each call to hearNoise (scaled by distance and the current state's calm factor) and decays each tick by alertnessDecay. Configurable tunables: hearingRadius, alertnessDecay, noiseVolumeTolerance, calmFactor, alertStateThreshold, aggressiveStateThreshold.

Methods