Jump to content
  • Advertisement
Sign in to follow this  
Simurg

Help - Rope pls

This topic is 4229 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

can anybody help me. I have to make an animation of rope. there are two people (drawing with line only it is not important) and they waggle the rope. I do not know how can I do this animation it is not important this animation written language I mean it can be OpenGL C++ C# and etc. pls help me..

Share this post


Link to post
Share on other sites
Advertisement
I've done it before in 2D. The easiest way (I think) is to just use spring physics. Assume that you have a chain of masses connected by springs, and use Hooke's law to move them around.

Share this post


Link to post
Share on other sites
If two people are moving a rope then wouldn't that form a wave? If so then your problem just becomes using a sin function:

X=Time
Y=Sin(Time*Frequency)*Amplitude

or something similar.

Example:

Share this post


Link to post
Share on other sites
Quote:
Original post by shadowisadog
If two people are moving a rope then wouldn't that form a wave? If so then your problem just becomes using a sin function:

X=Time
Y=Sin(Time*Frequency)*Amplitude

or something similar.


It's a little more complex than that.

You have to simulate the rope using spring physics, as UltimateWalrus said. A Verlet integrator will do the job quite well (even in 3D).

Share this post


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

  • 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!