New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to animate a rope/string. What's the best approach for this? #7
Comments
It is not an easy task to create a rope in all physics engines. To the best of my knowledge, the only way to simulate rope is using joint segments/springs. The following links may be helpful: |
As an update on this, I actually do have something functioning, although it does have quite a bit of overhead and it has some strange rippling effects. Further, it can move through objects when moving too fast. I will send a video later showing this. |
Brief example of a point trying to run away while leashed to two nails. IntroPuzzle.mp4 |
It's basically a chain: video-1627443070.mp4But then every frame I get a spline interpolator to smoothen the curve: video-1627452168.mp4At the moment, I'm facing a few issues with this implementation:
On the other hand this method does produce a decent rope without too many chains at a reasonable level of performance. I can do a PR if your interested in having this in your library. |
Exactly as stated in the title. I'm thinking about making it like a chain, using some constraints, but add smaller and more segments. Is this a viable approach? Thank you for all your work thus far.
The text was updated successfully, but these errors were encountered: