Re: [Algorithms] Target leading
Brought to you by:
vexxed72
|
From: Douglas C. <zi...@ho...> - 2001-08-25 23:46:00
|
>Excuse me for asking, but don't you WANT it to be thrown off. I am assuming >you are using this for a game and if I was playing you game and the >targeting was exactly correct for every case I would get extremely >frustrated.. unless you are using this for auto-aiming :) This is for auto-aiming in a 3rd person view as well as for AI, so it needs to be pretty accurate when we want it to be. Ye, it would be annoying to get hit every time, but the closer I can get to that, the closer we can let stats or skill levels factor into how many times the player actually gets hit. -also- >I think you can recalculate intersection point for every tick, so when >target change velocity vector or acceleration, >you recalc new intersection point and adjust direction of projectile >accordinally, this would look more or less like homing missle. I do this for our homing missiles and it seems to work very well. For laser shots, I don't think it would look great unless I constrain the angle at which it 'cheats' to something fairly small. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp |