Perception: a goal's sensory gain gates the sense channels' afferents
GoalSpec.SensoryGain (default 1, in [0,1]) is held in DriveState.SensoryGain, written only by the Actor at takeover (at construction for the Start goal) and handed to Perception.Sense. The gain multiplies each channel's afferent as it leaves the conduction ring, so sensitisation still follows the world; Load is built from the gated afferents; ChannelStimulus stays the world's; the nociceptive region afferents, the withdrawal reflex and its flinch are not gated. lodur:ruling:stress-bar-shows-arousal-calm-silences Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
e5a66bbc54
commit
f2f5a10226
5 changed files with 219 additions and 9 deletions
|
|
@ -99,7 +99,10 @@ namespace Lodur
|
|||
/// <summary>The will that is available to hold reflexes down and to power voluntary behaviour: resolve through attention, capped by consciousness.</summary>
|
||||
public double Will => Math.Min(Resolve * Attention, Consciousness);
|
||||
|
||||
internal static DriveState Fresh => new DriveState { Resolve = 1.0, Attention = 1.0, Consciousness = 1.0 };
|
||||
/// <summary>The gain on the sense channels in force, 0..1: the goal in force's <see cref="GoalSpec.SensoryGain"/> as the Actor has reached it. Written only by the Actor.</summary>
|
||||
public double SensoryGain { get; internal set; }
|
||||
|
||||
internal static DriveState Fresh => new DriveState { Resolve = 1.0, Attention = 1.0, Consciousness = 1.0, SensoryGain = 1.0 };
|
||||
|
||||
/// <summary>A goal's entry effect: sets resolve, then the mend check runs (a break the entry lifts past <see cref="DriveParameters.WillMendsAt"/> is mended). It is not a break and counts none.</summary>
|
||||
internal void Enter(DriveParameters p, double resolve)
|
||||
|
|
|
|||
Loading…
Reference in a new issue