You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wasn't too sure where to post this, but this repo seems to curate d3-force plugins for use in (perhaps) unusual use-cases, like physical simulations - so figured I'd alert users to energy-conservation in d3-force.
Wasn't too sure where to post this, but this repo seems to curate d3-force plugins for use in (perhaps) unusual use-cases, like physical simulations - so figured I'd alert users to energy-conservation in d3-force.
In particular, the Pendulum example asks:
Similarly, the Newton's Cradle example also 'thermalizes' albeit both explicitly setting:
The issue is that d3.forceLink actually performs iterative relaxation. The offending lines in the source code are:
Note the link distance is specified by 'peeking ahead' to the anticipated position of the node ⟨x + vx,y + vy⟩.
This notebook further explains the issue using examples, and suggests two alternatives.
The text was updated successfully, but these errors were encountered: