Closed KatieWoe closed 4 years ago
SphereBucket.removeParticle(particle, skipLayout)
indicates that its second argument should determine whether the layout is handled automatically. Currently, this is set to false and layout is handled by BAM code.
This should be refactored, but it requires the atom.destinationProperty be updated accordingly.
This can be fixed by adjusting the skipLayout
parameter from above. Also, the Atom2.isSeparatingProperty
can be removed because it was restricting stepping the Atom to update the position property based on its destination property.
@KatieWoe Can you confirm that the atoms don't float in the buckets anymore? Also, the remaining atoms should fill the space that a removed/dragged atom was occupying. This dev version can be checked.
The floating issue seems fixed. I did notice some other odd behavior of the remaining atoms in bucket though. Sometimes one will jump to a higher position, move to the side, rather than drop down, and become unable to be stacked back up.
Note to self: Bucket.addParticleNearestOpen()
may need to be used where the restoring bucket state isn't important. Bucket.placeAtom()
should distinguish this using an argument.
Adjusting Bucket.placeAtom()
worked well for handling the odd behavior described above. @KatieWoe can you verify in this dev version?
Looks much better now. You can't really restack the atoms, like in the second gif, but you can move them around now, so I think this is probably satisfactory.
In the java version, a user could stack the atoms until the exited the carousel and spilled into the play area. I don't think we want this behavior but I'll let @arouinfar decide and close. @arouinfar Could you review and close if this looks good?
Here is the Java version:
@arouinfar and I went over this and the stacking behavior mentioned above is something we don't want. As it stands we can't intentionally stack atoms anymore. Closing this issue.
Test device Dell Operating System Win 10 Browser Chrome Problem description For https://github.com/phetsims/QA/issues/459 When atoms in a bucket are taken from the bottom layer the atoms above it do not fall, leaving them floating in mid air. Steps to reproduce
Visuals
Troubleshooting information: