comparison ai/steer.d @ 26:88cca12cc8b9

added ship explode
author zzzzrrr <mason.green@gmail.com>
date Fri, 27 Mar 2009 19:26:01 -0400
parents 441eb7672404
children
comparison
equal deleted inserted replaced
25:2bf818f8b005 26:88cca12cc8b9
435 // xxx experiment, if kept, this limit should be an argument 435 // xxx experiment, if kept, this limit should be an argument
436 float etl = (et > maxPredictionTime) ? maxPredictionTime : et; 436 float etl = (et > maxPredictionTime) ? maxPredictionTime : et;
437 437
438 // estimated position of quarry at intercept 438 // estimated position of quarry at intercept
439 bzVec2 target = quarry.predictFuturePosition(etl); 439 bzVec2 target = quarry.predictFuturePosition(etl);
440 440 return target;
441 return target; //steerForSeek (target);
442 } 441 }
443 442
444 // ------------------------------------------------------------------------ 443 // ------------------------------------------------------------------------
445 // evasion of another vehicle 444 // evasion of another vehicle
446 bzVec2 steerForEvasion (State menace, float maxPredictionTime) { 445 bzVec2 steerForEvasion (State menace, float maxPredictionTime) {