http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/RoboCode_Mentors/reply_(6)&feed=atom&action=historyThread:Talk:Main Page/RoboCode Mentors/reply (6) - Revision history2024-03-28T21:24:19ZRevision history for this page on the wikiMediaWiki 1.34.1http://robowiki.net/w/index.php?title=Thread:Talk:Main_Page/RoboCode_Mentors/reply_(6)&diff=22233&oldid=prevSkilgannon: Reply to RoboCode Mentors2011-10-11T15:11:55Z<p>Reply to <a href="/wiki/Thread:Talk:Main_Page/RoboCode_Mentors" title="Thread:Talk:Main Page/RoboCode Mentors">RoboCode Mentors</a></p>
<p><b>New page</b></p><div>I'd take the difference, then normalise it relatively and take the absolute value. <br />
<br />
As for the other one, you probably want to look at projecting a point from an origin location, a certain distance at a certain angle. If you look in the source of [[Raiko]] (or pretty much any other open source bot) you'll see the 'project' function. Once you have the new location of the point, you can calculate the distance the normal way, sqrt((x1-x2)^2 + (y1 - y2)^2).</div>Skilgannon