Sign in to follow this  

Attraction and repulsion

Recommended Posts

Hello I have a question. I am trying to simulate an attraction force, which act on so many articles, this attraction force should decrease as distance of those articles decrease. so when we run the program, particles should move fast toward the other but as the length gets smaller the force should also become smaller. this is what I am thinking to use: Rf = k/d k: is a static number d: distance but when I use this as lenght become smaller speed increases instead od decrease. what can I do ? I cant think of a good solution right now, could you please give me some ideas? cheers

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this