How do I set a fixed length for a cable component with a physics object attached at one end?

Hey guys. I’m trying to create a fishing line with a bobber attached to one end on a fishing pole like so:

The issue I’m having is, if I click on simulate, the bobber just falls down and the cable’s length keeps increasing to however far the bobber falls to. I want to have the cable be at a fixed length and not have the bobber fall past the cable’s fixed length. It’s a bit more straightforward doing this in the world but in blueprints it seems more complicated. Answers in C++ would be welcomed too. I’m using UE 4.23.

Solution: I needed to add a physics constraint actor. This video helped: https://www.youtube.com/watch?v=erqu8mGJAYE