Page 1 of 1

Posted: Sun Feb 13, 2011 9:36 pm
by zero44
I want to look at some of the algorithms used in the Ai more miners n cons, also I wanted to check wheter the auto pilot uses critical path anlaysis to plot the journey..

Posted: Sun Feb 13, 2011 10:51 pm
by TurkeyXIII
It's in the ship IGCs somewhere, mixed in with everything else ship-related.

Posted: Sun Feb 13, 2011 11:25 pm
by zero44
In the source code?...
Nvm i found the R5 version skimming through now..

Posted: Sun Feb 13, 2011 11:43 pm
by TheRock
Yes, check shipIGC.cpp.

Posted: Mon Feb 14, 2011 5:48 pm
by zero44
Going through it i just noticed the ship to base collision case and docking in some station is a real annoyance so maybe the elasticity could be reduced?

starts from line 707 in ship igc, or just add a multiplier to the new velocity for the base collision case becuase it much simpler..

~935 Vector newVelocity1 = vElastic1 * cElasticity * 0.05; something like that ... but im really not so good at coding and this will probably cause a bug somewhere else..



P.S love the "c_impactJiggleCoefficient" looool

Posted: Tue Feb 15, 2011 12:59 am
by TheRock
Elasticity has nothing to do with the autopilot to docking in a base. It is only used when there is an actual collision, which I don't think is a frequent occurrence.

Also: //no smoking allowed