Skip to main content

VALUE_CLAMP

Constant VALUE_CLAMP 

Source
pub const VALUE_CLAMP: f32 = 100.0;
Expand description

Absolute clamp applied to every sampled value in KeyframeCurve::from_curve_fn / KeyframeCurve::from_motion_fn.

Values outside [-VALUE_CLAMP, VALUE_CLAMP] (or non-finite) are rejected with CurveError::SampledValueInvalid. The bound is generous enough for spring / bounce / elastic curves while still catching runaway user code.