- Code: Select all
int objectX = objectRect.X + (objectRect.Width / 2);
int objectY = objectRect.Y + (objectRect.Height / 2);
but that alwasy give to me currrent coordinate , Am i have to create 2.frame and compare first and second objectX ? if so how can I create 2. frame becasue first image must arrive late.
Actually I want to follow the object with servos , working on arduino and c# maybe i can not set up the algorithm.
Sorry for my english
Thank you