quote: Original post by particleGquote:
hmm u really get negative angles (directly from the interface)??? 4 me its both times positive... new version???
yeah I get negative angles and positive angles, I don't have subtract/add 360 (to fix them) or anything. This is directly from the interface.
Don't know what version I have, I think it's the latest one.
Maybe your doing something wrong, I dunno.
I've tested it extensively and I am definately not getting any negative angles...
What I've done to test it is log the direction of every object that the bot ever sees, then walk him around the map - the direction is invariably positive.
My code is as follows:
int i,nofObjs;float distance,direction,objdirection;int type;nofObjs=g_pCore->GetNumObjectsInSight();ofstream output("log.txt",ios::app);for (i=0;i<nofObjs;i++){g_pCore->GetObjectsInSight(i,type,direction,distance,objdirection);output<<"dir:"<<direction<<" dist:"<<distance<<" objdir:"<<objdirection<<endl;}output.close();
I can't see anything that I'm doing wrong... someone who's getting negative angles, what exactly are you doing to get them?
[edited by - HappyDude on August 3, 2003 1:42:05 PM]
[edited by - HappyDude on August 3, 2003 1:43:21 PM]