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

Use Mass in Velocity Verlet integration to restore drag-and-drop behavior #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pcottle
Copy link

@pcottle pcottle commented May 26, 2012

As per our earlier discussion, I realized that the mass of a particular particle can change in time; the mass of all the particles may not be the same as well, so this required new code to deal with changing mass.

I also changed the physics to cache the "old mass," meaning we can now cache the old acceleration and get even better dynamic behavior. The atlas demo now shows off this new mass changing behavior (and dragging and dropping); frankly I think it looks quite nice!

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

Successfully merging this pull request may close these issues.

1 participant