Re: Need HawkonFire Code

"funkyf1sh" <[email protected]>
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
Thank You. Now I get the code of HawkOnFire but I dont understand what "(1 + Math.abs(Math.cos(calcAngle(myPos, p) - calcAngle(en.pos, p)))) "/ p.distanceSq(en.pos) does. I tried to draw the lines with the onPaint function. But still dont get it. 
calcAngle only calculates the arctan2 of 2 points.
p.distanceSq(en.pos) is the antigrav like calculation. My problem is the numerator.

Does it calculate the destinationpoint with the smallest angle? 

Hope someone can help me. Thanks



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/Robocode/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.