Closed Daniel-Martinez closed 10 years ago
Our calculation is not working as we thought, stepping through the target gaming field the phi and theta values are correct for - x but not x. Hmm.
We had made the assumption that the Phi angel we were calculating was from the Y-axis. In reality is was calculating from the X and -X. Added to out method math to calculate the angle from our current position.
The below was added to the position method to calculate the actual angel for us to move from our calculated Phi and Theta. This was tested during our session with the test server and worked. We were able to kill 3 of 4 targets.
int t = Convert.ToInt32(targetList.Phi);
int t2 = Convert.ToInt32(targetList.Theta);
if (t < 0)
{
t = (t + 90);
t = -t;
}
else
{
t = (90 - t);
}
//for theta value
if(t2 != 0)
{
t2 = 90 - t2;
}
Create a list off fixes from test run of game server to ensure we have a working program for game day. 5/1 will be our last test day before final game.
Confident that we have all requirments met so this will be a tuning session.