General > Off Topic
making my own DB fan-version
Botsareus:
Some quick notes here:
--- Quote from: Numsgil ---The cond ... start ... stop architecture is a legacy artifact of how the DNA used to work.
--- End quote ---
Well, it is still kinda used for stuff like virus and gene deletion. So for pure ALife like Darwinbots it will be wise to keep such things.
--- Quote from: EnderCrypt ---
http://wiki.darwinbots.com/w/Anglecmp
it says "Calculates the shortest angle between the two angles given. Angles in DarwinBots are expressed in radians multiplied by 200."
so... didnt we previously say that radians in DB was multiplied by 400?
also could you give an example of how to use this operator, as i never used it myself
--- End quote ---
So if you google "how much is one radian" and you put in Pi for radian you get 180 degrees.
So two radians is the full circle or 360 degrees or 6.28~. If you multiply 6.28 by 200 you will get 1256 which is what db uses.
Now the difference between to angles is more interesting then taking the absolute value of subtracting one angle from another because like on a clock if you take 12:00 and subtract that from 1:00 you will not get 11:00 back but you will get 1:00.
EnderCrypt:
ah, i think i got it :)
so it basically just returns the fastest way to turn into one direction, man thats usefull, i think i got a code somewhere that does it, so i can just port it over to java
would something like this be a working code?
*.aim 500 500 angle anglecmp .aimdx store
would that turn towards point 500,500 on the map?
ps. thank you Numsgil for correcting the capitalization on my username :)
Botsareus:
Yes. Should work.
EnderCrypt:
how do things like .mass work? its a combination of body, waste? am i missing anything
Botsareus:
You will find that under CalcMass() in physics.bas
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version