You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PhET-IO we can set the position of the arrowObject such that it ends up on the right side of the lens. This is not possible do to by dragging the object and the simulation makes an assumption that the object is always to the left of the lens, so it lead to erroneous result.
However, here the position of the framedObject seem to have some form of position validation that the arrowObject does not have so it me be worth investigating if it is possible to validate the position of the objects.
The text was updated successfully, but these errors were encountered:
This has come up numerous times in the context of other sims. The solution has been to document in example.md. I recommend we do the same here. I see little value for the effort involved in trying to prevent the designer from putting things in "bad" positions.
pixelzoom
changed the title
PhET-IO: Should we validate the positions of the objects or put bounds.
PhET-iO: Should we validate the positions of the objects or put bounds.
Apr 19, 2023
In PhET-IO we can set the position of the arrowObject such that it ends up on the right side of the lens. This is not possible do to by dragging the object and the simulation makes an assumption that the object is always to the left of the lens, so it lead to erroneous result.
While discussing with @arouinfar, she mentioned that this has been noted in other sims, for instance, phetsims/beers-law-lab#322 and phetsims/ph-scale#270 . Often the solution has been to document it properly in
examles.md
such ashttps://github.com/phetsims/phet-io-sim-specific/blob/master/repos/beers-law-lab/examples.md#fix-the-position-of-the-concentration-probe-to-the-bottom-of-the-beaker.
However, here the position of the framedObject seem to have some form of position validation that the arrowObject does not have so it me be worth investigating if it is possible to validate the position of the objects.
The text was updated successfully, but these errors were encountered: