Jump to content

Loop around target


Recommended Posts


Hi guys, does anyone have any ideas on how to make the bot run around the target within a certain radius using




I once knew geometry well, but now "I cannot add 2 + 2", so I will be glad for any help


Link to comment
Share on other sites

Hi, like that (no tested):

var center = ObjectManager.Target.Position;
var distance = 3.5;
var listPos = new List<Vector3>();
for (double angle = 0; angle < System.Math.PI * 2; angle += 0.6)
    var p = new Vector3
        X = (float)(center.X + distance * System.Math.Cos(angle)),
        Y = (float)(center.Y + distance * System.Math.Sin(angle)),
        Z = center.Z


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...