I try to limit the vector length of a physic body. Like seen in the picture the grey circle is a physics body, the white circle around is the area it should only be able to move in. (Its like a touch button for movement)
I can calculate the distance between the midle of white area and the physics body with direction_to() and turn off velocity when the distance reached its maximum but i want to still be able to move the physics body on the edge of the radius when the length is maxed.