find point projection on circle around another point

Hello

110615-immagine.jpg

-red is player position

-blue are objectives position

-orange are the points i need to find, always positioned on the black circle around the player, even if the objective point is inside of it.

How can i do it?

Thaaanks <3

Simple vector math.

Given:

Vector3 R_Pos;
Vector3 B_Pos;
float circleRadius;

Solution:

// vector from R to B
Vector3 dir = B_Pos - R_Pos;

// same direction but the length is reduced / expanded to circleRadius
dir = dir.normalized * circleRadius;

Vector3 O_Pos = R_Pos + dir;