Rope physics constraint between player and other actors

I’m making a grappling system for an Unreal Engine project to swing around a city. I’d like to make the grappling physics-based, but i’m stuck on how to constrain the player movement to the end of a rope.

Sort of solved this one. heres how i did it, very hacky:
Spawns a sphere
creates a physics constraint between there and the hitpoint of a raycast from the grapple gun.
the sphere constantly teleports the player to itself
when the grapple is released, the sphere is destroyed