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

Go Back   .:: Bots United ::. > Cyborg Factory > RACC
RACC Autonomous fragmachines by PMB Counter-StrikeDMCHLDMThe Specialists

Reply
 
Thread Tools
Re: BotAim 2 announced. Best aiming ever.
Old
  (#11)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: BotAim 2 announced. Best aiming ever. - 06-01-2005

mommy



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: BotAim 2 announced. Best aiming ever.
Old
  (#12)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,415
Join Date: Apr 2004
Default Re: BotAim 2 announced. Best aiming ever. - 06-01-2005

Quote:
Originally Posted by @$3.1415rin
As always with differential equations, we search a function x which fits in that equation above, where that relation is true. This is usually done by searching the solution of the homogenous DEq, in our case that's m x'' + k x' + d x = 0. You can solve this with an exponential approach, i.e. you set x = exp( l * t ), put it into the hom DEq and divide by exp ( l * t ). This way we get a quadratic expression for l : m l^2 + k l + d = 0 which can be easily solved : l = -k/2m +- Sqrt( k^2 - 4 d m )/2m
I guess it may get confused Pierre a bit, so I'll try to explain it a bit more.
1. (f(g(t)))'=(f'(g(t)))*g'(t)
2. (exp(t))'=exp(t)
3. (l*t)'=l(t)'=l

Well, when we know this we can try find x'' and x' from Aspirin's equation (I mean this m x'' + k x' + d x = 0)


x'=(exp(l*t))'=(exp(l*t))*(l*t)'=(exp(l*t))*l=l*ex p(l*t)
x''=(x')'=(l*(exp(l*t))'=l*(exp(l*t))'=l*x'=l*l*(e xp(l*t))=(l^2)*exp(l*t)

so
m*x''=m*(l^2)*exp(l*t)
k*x'=k*l*exp(l*t)
d*x=d*exp(l*t)
and
m*(l^2)*exp(l*t)+k*l*exp(l*t)+d*exp(l*t)=0
then divide all equation by exp(l*t)

finally
m*(l^2)+k*l+d=0


I hope now it will be more clear for Pierre.

[EDIT]
Cleared a bit more - according to Aspirin's suggestion
[/EDIT]


Last edited by KWo; 06-01-2005 at 11:34..
   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#13)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,075
Join Date: Nov 2003
Location: Netherlands
Default Re: BotAim 2 announced. Best aiming ever. - 06-01-2005

noooo, too much math... brain explodes. Don't you ever do that again when i am just awake and want to relax and read some post asp!

*eek*



Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#14)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: BotAim 2 announced. Best aiming ever. - 07-01-2005

didnt want to intimidate anyone ...


   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#15)
MarD
Waypointer/Moderator
 
MarD's Avatar
 
Status: Offline
Posts: 1,184
Join Date: Jan 2004
Location: Canada.. EH!?
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2005

Heyyo,

Hmm, very interesting PMB, I tested it out too, and yeah, it's very interesting. The ability to change the spring and damping and adjust it to the framerate will make this definately very good for a bot. Lol, it makes me think of the Q3A bot on 'Bring It On' difficulty where its view would spaz like crazy once it locked onto an enemy. May not look realistic yes, but at least it wasn't cpu-intensive eh?


Later-a-much, and LONG LIVE THE D!,
(Link>>>MarD's Moddin' Site<<<Link) MarD

Rock Hound. (<Link)
   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#16)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2005

actually I'm starting to understand your math stuff, guys... just that I didn't know that one could solve diff eqs using exp stuff ; for us in electronics, when we have to solve a DEq of some sort, we turn it into the Laplace transform, or else the Z transform depending of its nature... solving DEqs with the Laplace transform is so fuckin'easy, I wonder why you math nerds feel the need to go the complicated way all the time...



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: BotAim 2 announced. Best aiming ever.
Old
  (#17)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2005

I think solving those equations using laplace, fourier, whatever transformations wouldn't be simpler to explain here, since there is quite some more theory behind it. and I thought that exp approach would be the std way to go with such simple DEqs


   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#18)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2005

math ... yeah , I still how I fail me math test
   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#19)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,415
Join Date: Apr 2004
Default Re: BotAim 2 announced. Best aiming ever. - 08-01-2005

Yeah - this exp is a standard way tosolve this type of DEq equations. There are some kiknds of equations and for them You should use some standard solution (You need to remembere them or look into some math manual). The same like for Integrators from some more complicated functions - there are some standard ways to solve them, too.
About Laplace - yeah - You can see the same equation, something like:

m+ k/s +d/(s^2)=0 => m*s^2+k*s+d=0

with the same result like with this Aspirin's way, but Yeah - it needs much more theory to show and explain here.
   
Reply With Quote
Re: BotAim 2 announced. Best aiming ever.
Old
  (#20)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: BotAim 2 announced. Best aiming ever. - 12-01-2005

having m < 1 or k > 1 results often in 'going' crazy, because just using the DEq iteratively you'd get too big changes. maybe one'd need to solve the DEq, and get the coefficients from the current 'initial conditions' to calculate the next few frames. then we'd be save from oscillations, although it won't be that easy, especially with that special solution. the general wouldnt be a problem, but that one ...



Last edited by @$3.1415rin; 12-01-2005 at 19:59..
   
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 - 2017, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com