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

Vertex pushing #128

Closed
phet-steele opened this issue Jun 6, 2016 · 26 comments
Closed

Vertex pushing #128

phet-steele opened this issue Jun 6, 2016 · 26 comments

Comments

@phet-steele
Copy link
Contributor

Black box vertices can be pushed around when following this procedure. I feel like someone has reported/mentioned this before, but here it is anyway. This "pushing" affects the vertices in Investigate mode, and the pre-made "revealed" circuits:

cckbb04

For #126.

@arouinfar
Copy link
Contributor

@phet-steele mentioned this is likely related to #125.

@samreid
Copy link
Member

samreid commented Jun 14, 2016

I think we should add a rule that components cannot be connected when outside of the black box in build mode.

@samreid
Copy link
Member

samreid commented Jun 14, 2016

I added a rule in #113 that the interface vertices cannot be moved, it seems to have covered this case, closing.

@samreid samreid closed this as completed Jun 14, 2016
@samreid
Copy link
Member

samreid commented Jun 14, 2016

Or shall I say, fixed pending testing.

@samreid
Copy link
Member

samreid commented Jun 14, 2016

Ready for testing in #134

@arouinfar arouinfar assigned samreid and phet-steele and unassigned arouinfar Jun 14, 2016
@arouinfar
Copy link
Contributor

arouinfar commented Jun 14, 2016

Something's still not quite right here @samreid.

I think we should add a rule that components cannot be connected when outside of the black box in build mode.

If I connect a fixed-length component to the outside of the black box in Build mode, it remains outside. I can continue to build outside of the black box if I connect other fixed-length components to the first one.

externalnodes

After deleting the battery attached to the black box, the other battery floats in the playspace. It does not snap to the inside of the black box until it is clicked.

To avoid this issue, would it be possible for fixed-length components to rotate into the black box if they are connected to a black box vertex from the outside? Sort of like this:
batteryrotation

Assigning to @phet-steele to be on the lookout for additional related issues when he works on #134.

@samreid
Copy link
Member

samreid commented Jun 17, 2016

I'll move the "connecting objects outside the black box" to a new issue, and this issue can remain to be focused on vertex pushing.

@samreid
Copy link
Member

samreid commented Jun 17, 2016

@arouinfar now that the "connecting objects outside the black box" is moved to a separate issue, can this issue (about vertex pushing) be closed?

EDIT: On second thought, I'll go with the above recommendation:

Assigning to @phet-steele to be on the lookout for additional related issues when he works on #134.

@samreid samreid removed their assignment Jun 17, 2016
@arouinfar
Copy link
Contributor

@samreid I ran into another instance of vertex pushing. If a fixed-length component is in the path of a wire that snaps into the box, such that their vertices are within the snap-to-connect distance, it's possible for the vertex of the fixed-length component to be dislocated.
vertexpushing2

@samreid
Copy link
Member

samreid commented Jun 17, 2016

Thanks @arouinfar, this may be solved if we expand the rules of #136 to say that a component cannot propose a connection inside a black box if any of its vertices are outside of the black box. Sound like it is worth investigating?

@arouinfar
Copy link
Contributor

@samreid that sounds like a reasonable rule. Please look into it.

@samreid
Copy link
Member

samreid commented Jun 18, 2016

I implemented that as described and it seems like it is working well. Will be ready for testing in next version.

@phet-steele
Copy link
Contributor Author

@samreid the procedure in #128 (comment) still happens in 1.0.0-dev.17.

@phet-steele
Copy link
Contributor Author

@arouinfar @samreid aside from the issues pointed out in #141, I'm not a huge fan of this proposed rule (#128 (comment)) in general. It is not good at handling vertices along the top and bottom of the black box. It's very frustrating to try to make connections and also causes some intense flickering while dragging (not captured well in this low frame rate video):
cckbb08

@samreid
Copy link
Member

samreid commented Jul 3, 2016

Proposed fix above. I expanded the black box bounds outward so that the black box vertices are in bounds and it seems to help. This will need testing. Will moving the black box bounds outward cause other problems? Let's find out in the next test version.

@samreid
Copy link
Member

samreid commented Jul 5, 2016

Testing issue linked above.

@phet-steele
Copy link
Contributor Author

@samreid I'm still getting a lot of flickering.

@samreid
Copy link
Member

samreid commented Jul 6, 2016

Same as in #128 (comment) ?

@phet-steele
Copy link
Contributor Author

@samreid yes

@samreid
Copy link
Member

samreid commented Jul 6, 2016

Are you still seeing flickering for perfectly horizontal components, or only for near-horizontal components?

@phet-steele
Copy link
Contributor Author

Only near-horizontal. The initial drag from the component box performs optimally.

@samreid
Copy link
Member

samreid commented Jul 8, 2016

I'll move this last issue to a new separate issue.

@phet-steele
Copy link
Contributor Author

@samreid I believe #128 (comment) is still present.

@phet-steele phet-steele reopened this Jul 11, 2016
@samreid
Copy link
Member

samreid commented Jul 11, 2016

Thanks @phet-steele, I'll create a specific issue for that problem.

@samreid
Copy link
Member

samreid commented Jul 12, 2016

Tracking the remaining issue in #173, closing.

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

3 participants