91
Tips and Tricks / how to make a bot go at the simulations max velocity all the time!
« on: March 13, 2010, 05:35:22 PM »Quote from: fulizer
fineAww . . . maybhe you could sense drag with something along the lines of
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']def drag 50
cond
*.robage 0 =
start
.tie inc
0 .drag store
stop
cond
*.robage 1 >
*.robage 22 <
start
.deltie inc
*.maxvel .up store
*.nrg .drag store
stop
cond
*.robage 21 =
start
*.drag *.nrg sub .drag store
*.drag *.maxvel div .drag store
stop
cond
'conditions for moving forwards
start
*.drag .up store
stop