Line issues (AND HOW DO YOU GET THE POSITION OF A RIGID BODY)

I’m trying to draw a simple line from the player to the end of a ray for a grappling hook. Anyone have any tips? I’ve tried to add points at the player’s (RigidBody2d) to the end of a ray, and it bugs out by not only not connecting to the player, but not connecting full to the end of the ray. Please help