Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

Red Knight

Springs with Open Dynamic Engine

This topic is 5358 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, I have to do a Spring based graph visualization algorithm. The problem is that I dont know what kind of joint to use and where to position it... For instance this is the algorithm more or less: BEGIN Place randomly the nodes of the graph in the world. Assign values based on actual node information - Lenght of the spring - Mass of the body - Damping (constant) Set the joints between connected nodes. (actually this is what I need to know how to do) Several nodes can be connected to a node. While ( the graph is not in a stable configuration ) do - Apply forces from the springs. - Integrator step - Render result END I need the objects to be able to move arround between each timestep to make the graph find a stable configuration. That would change the angle of the connection object, so I dont think I can use a slider (am I wrong). Sorry in advance, as this is not for game use, however we are going to use ODE in an open source game that we are doing so I will have to do this question anyways in some time. Thanks in advance. Greetings Red Knight

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!