Jump to content
  • Advertisement
Sign in to follow this  

Problems on drawing a dynamic rope in OpenGL..

This topic is 1409 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 guys, I want to draw a rope in 3d with OpenGL. The best material I can find online is this tutorial: http://nehe.gamedev.net/tutorial/rope_physics/17006/

 

Though the article is quite comprehensive, I still got some questions.

 

First of all is how to initial place the masses. In the tutorial, author hangs one end of the rope, and let the rest part of the rope fall, which is quite easy to calculate their locations. In my app, I want to hang both end of the rope, so it's kind of hard to calculate the initial places.

 

Secondly, I want to make the length of the rope dynamic, which when I move the end points, I want the rope grow/shrink with them. How do I implement this? How do I dynamic add / remove masses?

 

Big thanks!

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!