gametechmods
Robot Arena => General Support => Topic started by: Resetti's Replicas on May 23, 2011, 10:36:41 AM
-
I'm tinkering with the ShiftWeapon AI for one of my bots (It's the one where you mount a spin motor onto a servo so that the configuration of your spin weapon changes constantly) and I don't understand what the variables do. Can anyone explain these, plus the range of acceptable numbers?
'servoNbPos', 'servoTimer', ''servodelta,' and 'servorange.'
Also is there a way to make the servo pivot less often. At the moment it's shifting about once per 1-2 seconds
-
list.append( ("shiftweapon II", "ShiftWeapon3", { 'nose': math.pi, 'servospeed':30,'servodelta':0.05, 'servoTimer':35, 'servoNbPos':4,'weapons': (1,2,3,4) }) )
EDIT to fit bot.
-
I have that already, I want to know how it affects the bot's performance when I change the numbers
-
Experiment I guess.
servospeed might be how fast it turns.
EDIT: Seems to explain it well in the python file.
-
Already explained this in a PM. But for this
Also is there a way to make the servo pivot less often. At the moment it's shifting about once per 1-2 seconds
you want to increase servoTimer.
-
Experiment I guess.
servospeed might be how fast it turns.
EDIT: Seems to explain it well in the python file.
Are you Sparkbutt double accounting????
We don't guess in Technical support, if you don't know then keep quiet!
-
Well, no-one else was helping so I did my own experiments with the .py file to see what it did then made observations.