• Advertisement
Sign in to follow this  

Help - Rope pls

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