Skip to content

Is there a parameter that controls piece "snap" distance? #70

Answered by flbulgarelli
JeffroDB asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! 👋

The function of proximity is to control the minimum distance between two pieces inserts that make them get connected, so increasing the proximity is definitely the way to go. E.g. your snippet here shows a proximity of ~2% of the piece size, while in the examples provided it is usually between 10 and 20%.

That said, yes, it is true that proximity also controls shuffle. It is intentional, because otherwise puzzle would get connected just after shuffling, or even after a minimal movement. So you might try to change proximity manually after shuffling the canvas, but it won't probably work as expected. Also, canvas are not designed to mutate proximity after intialization, but I haven't …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JeffroDB
Comment options

@flbulgarelli
Comment options

Answer selected by flbulgarelli
@JeffroDB
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants