Difference between revisions of "Talk:.edge"

From WikiManual
Jump to: navigation, search
m
m
Line 31: Line 31:
 
IOW ... do the physics take care of the bot's '''''heading''''' as part of<br>
 
IOW ... do the physics take care of the bot's '''''heading''''' as part of<br>
 
the bot's velocity vector, including the direction it is '''''facing''' ...<br>
 
the bot's velocity vector, including the direction it is '''''facing''' ...<br>
or just it's '''''[[.dx]]''''' and '''''[[.dy]]'''''?<br>
+
or just it's '''''delta x''''' and '''''delta y'''''?<br>
 
ie ... is it any longer necessary to '''''rotate''''' the bot?<br>
 
ie ... is it any longer necessary to '''''rotate''''' the bot?<br>
 
[haven't had time to actually experiment and gather empirical data yet. i will.]<br>
 
[haven't had time to actually experiment and gather empirical data yet. i will.]<br>

Revision as of 12:04, 25 December 2005

Example:

'this will turn a bot a random number of degrees upon hitting an edge.
314 rnd .aimdx *.edge mult store

This will turn the bot by a rnd amount between 0 an 90 degrees ... clockwise, yes?
and 314 rnd .aimsx *.edge mult store, 0-90 degress CCW?

If one wished to have the bot turn either CW or CCW ...
what would be the best way to do so?
will this work?:

628 rnd .aimdx *.edge mult store
-314 .aimdx store

resulting in the bot rotating 0-90 degress to the left or right?

or:

314 rnd .aimdx *.edge mult store
-314 rnd .aimdx *.edge mult store

or:

314 rnd .aimdx *.edge mult store
314 rnd .aimsx *.edge mult store

resulting in smaller values near 0 degrees being more probable,
ie ... the distribution being more closely centered around zero?
Assuming any of the above would work ...
Which of these would be more costly for the bot?

Also ... perhaps the above is moot, eh?
How much of this is taken care of by the new physics of 2.4.X?
where the velocity and momentum is used to simply 'bounce' the bot
off of the 'edges'?
IOW ... do the physics take care of the bot's heading as part of
the bot's velocity vector, including the direction it is facing ...
or just it's delta x and delta y?
ie ... is it any longer necessary to rotate the bot?
[haven't had time to actually experiment and gather empirical data yet. i will.]
tanks.
Griztalk