Bots and Simulations > The Gene depository
True Aiming using only physics
bacillus:
If I were you, I wouldn't use .aimshoot. It's got the nasty tendency to do unpredictable things, although I did manage to find out that a.) it either uses a scale different to the other aiming features b.) it's measured going the wrong way or c.) it has a different starting point. Point is, it's very messy to work with.
rayz:
--- Quote from: bacillus ---If I were you, I wouldn't use .aimshoot. It's got the nasty tendency to do unpredictable things, although I did manage to find out that a.) it either uses a scale different to the other aiming features b.) it's measured going the wrong way or c.) it has a different starting point. Point is, it's very messy to work with.
--- End quote ---
I think it goes the wrong way. These two lines of code make eye5 and the shot direction point the same way:
*.aimHeading *.aim sub .eye5dir store
*.aim *.aimHeading sub .aimshoot store
Peksa:
This is from my shot at true dog figher bot. I got as far as a funcional bot that allways faces up. It actually used .refaim for part of it's conspec.
*.refxpos *.refypos angle 314 sub - .aimshoot store
Trafalgar (he designed the monster-bot Guardian) did empirical studies and ended at shot speed 39. I recommend reading his posts if you intend to make a true aiming bot. Also I recommend reading abyaly's bot's, especially Aura.
Navigation
[0] Message Index
[*] Previous page
Go to full version