Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decrease threshold for connecting atoms #154

Closed
arouinfar opened this issue Jan 29, 2020 · 8 comments
Closed

decrease threshold for connecting atoms #154

arouinfar opened this issue Jan 29, 2020 · 8 comments

Comments

@arouinfar
Copy link
Contributor

Discovered during #113

The threshold for connecting atoms is currently too large. As a result, it can be a really frustrating experience to cut multiple atoms/pieces off of a molecule. After severing a bond, clicking elsewhere in the molecule will cause the pieces to rejoin.

cut

When severing a bond, the atoms scoot pretty far apart. This distance feels appropriate.

However, the threshold to connect these atoms is (roughly?) the same distance, which causes the reconnection issues in the .gif above. Let's reduce the distance at which the atoms will connect to one another to something more like this:
Screen Shot 2020-01-29 at 4 05 04 PM

@Denz1994
Copy link
Contributor

The bonding and separation thresholds have been reduced to match what is described above. This will need to be reviewed on master @arouinfar.

@arouinfar
Copy link
Contributor Author

@Denz1994 I'm not longer running into issues with parts automatically reconnecting, but the threshold still seems a bit off.

Here are a few gifs showing atoms reaching the threshold distances. In all cases the distance seems quite a bit larger than the last screenshot in #154 (comment). Often, moving an atom/molecule close to another will cause a repulsion and the non-grabbed atom will scoot away from the one that was dropped nearby. This happens regardless of whether a fragment was first cut from a larger molecule, or if freshly connecting atoms from the bucket.
cut2
threshold

@Denz1994
Copy link
Contributor

Denz1994 commented Feb 4, 2020

This should have been fixed in master in the latest commit. Can you review @arouinfar?

@arouinfar
Copy link
Contributor Author

@Denz1994 I'm not longer seeing the scooting behavior demonstrated in #154 (comment). However, the distance of the threshold still seems quite a bit larger than what was requested.

threshold

This is the approximate threshold from the gif above:
image

Can you reduce the threshold by about half?

@Denz1994
Copy link
Contributor

The bonding threshold has been reduced by half. The bonding threshold is essentially the distance from the tolerable distance away from a potential bond position. Reducing this threshold means that users will have to focus on dragging close to the position where the bond is formed (think of the yellow circle's position) and not by just dragging the molecule near the other molecule.

If this is the desired behavior @arouinfar, then Master should have the above changes and should be reviewed. If not, then we should discuss it further.

@arouinfar
Copy link
Contributor Author

Reducing this threshold means that users will have to focus on dragging close to the position where the bond is formed (think of the yellow circle's position) and not by just dragging the molecule near the other molecule.

I generally think this is desirable behavior -- users should bring atoms close together when trying to create bonds. Previously, it felt like things were getting sucked together too easily.

@Denz1994 it looks like the scooting/repelling shown in #154 (comment) has been reintroduced. I'm not sure why I can't set two molecules near-ish to each other (still well outside of the threshold) without the repulsion.

@Denz1994
Copy link
Contributor

Denz1994 commented Mar 4, 2020

The atoms now repel when the two atoms bonding locations are diagonally aligned. Bromine and Hydrogen are the most extreme case (see 3rd screen, 7th kit) Can you review this dev version @arouinfar?

@arouinfar
Copy link
Contributor Author

This is looking so much better @Denz1994! I think we can go ahead and close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants