Moving the bot to the center of the battlefield

View: New views
1 Messages — Rating Filter:   Alert me  

Moving the bot to the center of the battlefield

by Twanger () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i have to solve this problem. i have to find the center of the battlefield

i used

double X = getBattleFieldHeight() /2;
double Y = getBattleFieldWidth() /2;

to find the center x and y coordinates. my problem is that i dont know how to move my bot right to that position. i dont know the direction in which i have to turn the tank .

hope someone can help me