Closed phet-steele closed 7 years ago
@ariel-phet suggests rounding the applied force and friction force to the nearest 1, so the display values will match the model values.
Speed will still be shown as a decimal.
@ariel-phet says priority should be relatively high.
@jessegreenberg says he could work on it.
Thanks @jessegreenberg, let me know if you need help.
Also assigning myself to communicate with user when things are fixed!
Discretizing the applied force slider is a good idea. Discretizing the friction slider will not work (because the friction force is computed based on it and other factors), and the friction force may need to be discretized in the model.
@samreid yes, that is true. The above commit handles this as described in https://github.com/phetsims/forces-and-motion-basics/issues/197#issuecomment-245725596. The applied force is rounded by the slider while the friction force is rounded after calculation in the model. The result is that the forces in the model are equal to what is shown in the view. I verified in an instance proxy.
In the maintenance release for this issue, we may also want to include #198.
This looks good, I let the sim run for ~10 mins with equivalent applied and friction forces and saw no change in speed. @oliver-phet this will be fixed when the sim is released. Keeping this open until then.
@oliver-phet, sim is deployed. Were you going to email the user who reported this issue?
User has been notified, closing!
@samreid @ariel-phet Revealed through PhET-iO, and similar to phetsims/energy-skate-park-basics/issues/355, there is a precision issue outlined by the screenshots below.
This setup appears to show friction equaling applied force:
But in reality the absolute value of friction force is greater than the applied force (applied force is exactly 50N):
With this setup, and the speedometer shown, the moving object DOES slow down. Certainly a problem if the net force on the object appears to be 0.