Pudge 24 Posted July 16, 2020 Share Posted July 16, 2020 Hi guys, does anyone have any ideas on how to make the bot run around the target within a certain radius using ObjectManager.Target.Position I once knew geometry well, but now "I cannot add 2 + 2", so I will be glad for any help Link to comment https://wrobot.eu/forums/topic/12367-loop-around-target/ Share on other sites More sharing options...
Droidz 2738 Posted July 19, 2020 Share Posted July 19, 2020 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 }; listPos.Add(p); } Link to comment https://wrobot.eu/forums/topic/12367-loop-around-target/#findComment-59263 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now