Hello, I am working on my own spring constraint and I am trying to use a soft constraint.
The presentation in soft constraints was great, thank you, and i was able to implement a spring connected to a fixed point, now i need to create a soft constraint between two free bodies that both move.
My first attempt I used a mid point distance as fixed and this blew up, the other attempt I used the relative speed of the first body to the second and didnt work either. I am thinking of a system of 2 equations and 2 variables being the speeds of the bodies but this is tedious. Whats the best way to accomplish a spring soft constrain between two free bodies ? If you guys have the equations I will be infinitely thankful
The presentation in soft constraints was great, thank you, and i was able to implement a spring connected to a fixed point, now i need to create a soft constraint between two free bodies that both move.
My first attempt I used a mid point distance as fixed and this blew up, the other attempt I used the relative speed of the first body to the second and didnt work either. I am thinking of a system of 2 equations and 2 variables being the speeds of the bodies but this is tedious. Whats the best way to accomplish a spring soft constrain between two free bodies ? If you guys have the equations I will be infinitely thankful