.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
New aiming algorithm. Rocks.
Old
  (#1)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default New aiming algorithm. Rocks. - 04-01-2005

I invite you to check http://forums.bots-united.com/showth...1496#post31496



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: New aiming algorithm. Rocks.
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: New aiming algorithm. Rocks. - 04-01-2005

I tried this in POD-Bot, I'm not sure I'm doing this in correct way but the aiming still mess up if I don't clamp it:
PHP Code:
      Vector v_deviation vecDirection pev->v_angle;
      
ClampAngles (v_deviation);

      
float k 5;
      
float d 2;

      
pev->yaw_speed += g_flTimeFrameInterval * (v_deviation.pev->yaw_speed);
      
pev->pitch_speed += g_flTimeFrameInterval * (v_deviation.pev->pitch_speed); 
  
Reply With Quote
Re: New aiming algorithm. Rocks.
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: New aiming algorithm. Rocks. - 04-01-2005

I'm working on an implementation with the optimal values (and a few extra goodies). Give me some time to finish. In the meantime, yes, you still need to clamp them, as always.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com