30-12-2021, 06:20 PM
I am working on my crane simulator and I have 2 (related?) issues.
1. The rope I am using is still too stretchy. I want to simulate a stiff metal cable which should never stretch in length. On instantiation, or whenever i move the boom, the rope bounces the hook around like it is on a rubber band.
and
2. When I adjust the angle of the boom, the rope and attached hook do not hang down properly. See attached screen shots. For the first screen shot, the solver was a child of the boom so I figured that what was causing the problem (the rope jutted out at the converse angle of rotation). So I moved the solver outside of the boom game object's hierarchy and attached the rope to a point on the boom (instead of to itself). That helped a little but as you can see in the second screen shot the rope is still behaving strangely. It is not straight and the hook game object isn't directly below the attachment point as it would be if gravity pulled on it
I think the second issue was because I had set the Sleep parameter for the solver too high (I was trying to make the rope less stretchy to solve issue 1) If I decrease the sleep threshold the rope does hang properly but moving the crane makes the hook flail around spastically.
How can i get a stiff rope that still hangs directly down without stretching?
1. The rope I am using is still too stretchy. I want to simulate a stiff metal cable which should never stretch in length. On instantiation, or whenever i move the boom, the rope bounces the hook around like it is on a rubber band.
and
2. When I adjust the angle of the boom, the rope and attached hook do not hang down properly. See attached screen shots. For the first screen shot, the solver was a child of the boom so I figured that what was causing the problem (the rope jutted out at the converse angle of rotation). So I moved the solver outside of the boom game object's hierarchy and attached the rope to a point on the boom (instead of to itself). That helped a little but as you can see in the second screen shot the rope is still behaving strangely. It is not straight and the hook game object isn't directly below the attachment point as it would be if gravity pulled on it
I think the second issue was because I had set the Sleep parameter for the solver too high (I was trying to make the rope less stretchy to solve issue 1) If I decrease the sleep threshold the rope does hang properly but moving the crane makes the hook flail around spastically.
How can i get a stiff rope that still hangs directly down without stretching?