Difference between revisions of "User talk:Positive/Optimal Velocity"
Jump to navigation
Jump to search
Darkcanuck (talk | contribs) (passes except when max. velocity set) |
(Small update necessary) |
||
Line 1: | Line 1: | ||
Your version passes all of my tests (so far) except that it doesn't take into account the maximum velocity set by the bot. Nice catch on the updateMovement() routine, that should get fixed too (my tests assume that behaviour already). --[[User:Darkcanuck|Darkcanuck]] 20:21, 15 July 2009 (UTC) | Your version passes all of my tests (so far) except that it doesn't take into account the maximum velocity set by the bot. Nice catch on the updateMovement() routine, that should get fixed too (my tests assume that behaviour already). --[[User:Darkcanuck|Darkcanuck]] 20:21, 15 July 2009 (UTC) | ||
+ | |||
+ | : Great! Please replace 8.0 in the getNewVelocity function with currentCommands.getMaxVelocity(), and it should work I believe (I temporarily set it to 8.0, because I am not using the currentCommands class). :) --[[User:Positive|Positive]] 20:26, 15 July 2009 (UTC) |
Revision as of 21:26, 15 July 2009
Your version passes all of my tests (so far) except that it doesn't take into account the maximum velocity set by the bot. Nice catch on the updateMovement() routine, that should get fixed too (my tests assume that behaviour already). --Darkcanuck 20:21, 15 July 2009 (UTC)
- Great! Please replace 8.0 in the getNewVelocity function with currentCommands.getMaxVelocity(), and it should work I believe (I temporarily set it to 8.0, because I am not using the currentCommands class). :) --Positive 20:26, 15 July 2009 (UTC)