Bots and Simulations > DNA - General
NewMove?
Numsgil:
--- Quote ---you should do like im gonna do nums, it gives a specefic trust and then do all that newton stuff.
F=MA
--- End quote ---
That's exactly what's going on in 2.4. That's the physics stuff I fixed.
Griz, I was referring to my first post in this thread, not on the wiki...
syntax:
use works exactly like def. They both go at the start of the code before the first cond statement. They may even work anywhere in the code, I'm not sure. Traditionally they go at the start.
If you don't understand def, then you have an issue with knowing how the DNA works in general and that's really a seperate issue.
As to what use NewMove is actually doing:
upon encountering use NewMove, the robot's NewMove register (may be named something else, I forget) is set to true.
When the program enters the part that applies thrust to a bot, it will take what's in the .up/.dx, etc. registers and multiply them by current mass unless the NewMove flag is set to true.
Numsgil:
Then you figured it out...?
Navigation
[0] Message Index
[*] Previous page
Go to full version