Download

Reducing Distance between Actors bound with Physics Constraint Component

Hello there.
I am currently working on a rope swinging feature (like Uncharted 4) where the character can launch a rope to a hook and swing after jumping. To do this, the hook has a physics constraint component to which I constrain, in runtime, the capsule component of the character so that he starts swinging (I also attach a cable to the hook for visual purposes).
This works very well but I’m now trying to make the character go up and down the rope while swinging.
I have tried breaking the constraints, adding world offset towards or away from the hook then resetting the constraints but this stops the swinging motion and looks very off.
I was wondering if there was an easy way of changing the distance between the constrained components in runtime so that I could offset it by some Delta variable on tick or something.

Thank you very much for your help.