Open Matthew-Moore240 opened 1 month ago
Noting that the more stable, the more negative the number, which seems to be oposite the intended behavior.
In this code, we actually get the value of launcherStandardDeviationAngle and, after a linear transform, rename it to angle stability
.
const launcherMechanism = launcherName === 'custom' ? launcherMechanismName : '?';
const angleStabilitySliderValue = ( 5 - 0.2 ) / ( 5 - 0.2 ) * ( projectile.launcherStandardDeviationAngle - 5 ) + 0.2;
const angleStabilityRounded = valueRoundedToThousandths( angleStabilitySliderValue );
const angleStability = launcherName === 'custom' ? angleStabilityRounded : '?';
This was implemented in https://github.com/phetsims/projectile-data-lab/issues/234. I'm not sure how to proceed.
@matthew-blackman recommended this patch:
After the commit, I'm seeing values from 0 (low stability) to 1 (high stability)
Test device Win 11 Desktop
Operating System Win 11 23H2
Browser Firefox 131.0.3
Problem description From https://github.com/phetsims/qa/issues/1157 Angle Stability goes into the negative.
Steps to reproduce N/A
Visuals