Comparing Absolute Distance using GlobalTransform Not Working as Expected #4430
-
I'm trying to implement a rope using Verlet transforms and enforcing constraints via Jakobsen's method. I was working off this post: https://www.owlree.blog/posts/simulating-a-rope.html. Things were working mostly correctly when I was using normal You can see what I am talking about here: https://github.com/TomPridham/bevy-cable/pull/3/files. The pull request has the bad behavior using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I haven't done any debugging of the code, but when your cables in the child move the parent, they will also change their own This seems like a possible mechanism for things to zoom off. |
Beta Was this translation helpful? Give feedback.
-
I think it's related to the last paragraph here: https://bevy-cheatbook.github.io/features/transforms.html. The system is fine for a single iteration, but gradually gets more and more out of sync because the |
Beta Was this translation helpful? Give feedback.
I think it's related to the last paragraph here: https://bevy-cheatbook.github.io/features/transforms.html. The system is fine for a single iteration, but gradually gets more and more out of sync because the
Transform
s are getting changed twice for everyGlobalTransform
update. i think i will just have a container element that isn't technically part of the cable and use normalTransform
s to change everything