pub struct ImpactSample {
pub emphasis: f32,
pub flash: f32,
}Expand description
Normalized presentation envelopes, sampled before a presentation-time advance.
Both channels combine accepted events by taking the maximum, never summing,
and stay in 0..=1. Emphasis decays exponentially at 24 per second, flash at
18 per second. After a positive advance, stored levels below 0.0001 become
exactly zero, cutting off the exponential tail. Policy scaling is applied
afterward. Zero-delta sampling does not decay or retire either channel.
These are visual weights, not time scales or simulation delays. Hosts choose
the visual treatment; the controller does not render it. See
FeedbackController::advance_with_impact for paired frame sampling.
Fields§
§emphasis: f32Hit emphasis for a scale/pose pulse. Hit, Hurt and Explosion have authored
peaks of 0.3, 0.7 and 1.0, scaled by event intensity and config motion,
capped at one, then scaled by policy. Other events do not raise this level.
Reduced motion clears it; reduced flash alone does not affect it.
flash: f32The same screen-flash level returned in FeedbackFrame::flash. Reduced
flash clears it; reduced motion alone does not affect it. Hosts should
render this channel once, even when using both frame and impact samples.
Trait Implementations§
Source§impl Clone for ImpactSample
impl Clone for ImpactSample
Source§fn clone(&self) -> ImpactSample
fn clone(&self) -> ImpactSample
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more