Calculating Position based on mouse.hit.Pos with a magnitude restriction

Ok so guys I’m trying to calculate the position of a thing based on mouse.Hit.Position and the position of the character with a magnitude of 10 which I currently dont know how to calculate.
here’s a reference of what I’m trying to get
image
What I’m trying to do is getting the position based on a given direction(can be turn to an angle) and magnitude

1 Like