Author Topic: How does bot wander work?  (Read 1141 times)

I set distance to 10 it goes like 50 studs, I sent distance to 1 it goes like 20 studs.

I don't understand.

its probably the radius of how far it can wander



Maybe the number you put in is multiplied by 5 or 20 or something? Something like that.

i was wondering this as well

Maybe the number you put in is multiplied by 5 or 20 or something? Something like that.
10 x 5 = 50
Yes

1 x 5 = 20
No

try setting the distance to 2, then 3, then 4, then 5, and so on.

and then, I don't know, do that math I guess.

It is wandering though, so can't it go in any direction and such?

I should probably try it first.

Took a look at the code, i think the input is in bricks, then converted to metric using the brickToMetric function (which i didn't know about). So in theory it isn't scaled at all.

the way i'd think it would work would be in torque units

each torque unit is two studs

keep in mind OP states estimations



it probably works like this

y=3x+20

X being the adjusted number for range and Y being the actual stud distance

it probably works like this

y=3x+20

X being the adjusted number for range and Y being the actual stud distance

You can test the actual value of the constant by setting bot wander to 0 and measuring the max amount of distance the bot travels from the center point.

And if they stay in the same spot, your equation would be invalid.