IRL2 / SubtleGame

A psychophysics game for interactive molecular dynamics
Other
1 stars 0 forks source link

Check for stable knot #182

Closed rhoslynroebuck closed 5 months ago

rhoslynroebuck commented 5 months ago

The code now checks that the 17-ala remains knotted over 30 consecutive frames. This seems to work well, but the number 30 was chosen arbitrarily, so maybe this should change in the future.

In terms of the UI, nothing has changed for the moment. Luis suggested that this is probably best, but we can see if something needs to be implemented to let the know when the code starts detecting a knot. Currently the player is not notified when the first knot is detected, the simulation only changes colour once the stable knot is detected, and then the confetti comes a little after that.