How To Move an Object Around a Circles Diameter using X Z Axis

Hello there,

I need some help with a problem I’ve been stuck on for a while and I’m not very good with math. I was making a swing mechanic and I got almost everything down I just need to figure out a way to increase or decrease the “swing” length while keeping the collision capsule at the proper (or same) rotation. I use a physics constraint for the swing, and by breaking it, moving the capsule up or down by 1 unit then re-constraining it I can change the length of the line which works fine if the player is directly under the hook (by adding or subtracting the Z axis) but if the player is swinging to one side the capsule’s rotation stays the same and looks off. I need to figure out how to keep the capsule’s Up Vector facing the hook when changing the swing length. I’m sure there’s some kind of math equation for this that moves the capsules X and Z (it’s a 2D game) along a circles diameter (or radius?)

First two pictures are what I want to happen when changing the length, and the last picture is what happens when I do (using only the Z axis). Any help is appreciated. Thanks!