I want to the player circle walk by his target as the center of the circle.how calculate the player positon?it is a 3d game
you mean like what they do in FFXII when you target an enemy?, one way of doing it is making an empty as the child of your player, when you player gets close to and enemy and targets it, the empty becomes the parent and is automatically set to the enemas position. then add random Y axis rotation and make you player play its animations, when the enemy’s dead , the empty returns to its child state.