// Checking if there's a wall between for(new i; i < 20; i++) { engfunc(EngFunc_TraceLine, fStart, fEnd, IGNORE_MONSTERS|IGNORE_MISSILE, mortar, iTr2);
#if defined DEBUG_FOLLOWING beam_bet_2origin(fStart, fEnd); #endif
get_tr2(iTr2, TR_flFraction, flFraction);
// We probably can land a hit on the target if(flFraction >= 0.9) { pev(target, pev_origin, fVecTemp); engfunc(EngFunc_TraceLine, fEnd, fVecTemp, IGNORE_MONSTERS|IGNORE_MISSILE, target, iTr2); get_tr2(iTr2, TR_flFraction, flFraction);
#if defined DEBUG_FOLLOWING beam_bet_2origin(fEnd, fVecTemp); #endif
what u want is create a projectile to hit a target behind a wall. do I have any misunderstanding?
then the projectile should do a parabolic motion to bypass the wall.
i'm not the author of this stock, so i can't help u to understand the calculation
what u want is create a projectile to hit a target behind a wall. do I have any misunderstanding?
then the projectile should do a parabolic motion to bypass the wall.
i'm not the author of this stock, so i can't help u to understand the calculation
yes, and no its not just a parabolic motion that i need, its actually called trajectory
yes, and no its not just a parabolic motion that i need, its actually called trajectory
Parabolic motion is a type of trajectory. The trajectory of any object that is subject only to gravity (i.e. not powered and has little to no air resistance) will be parabolic. If you have a powered projectile, the trajectory will not be parabolic until there is no longer any propulsive force. When the propulsive force stops, the trajectory will become parabolic because it will only be acted upon by gravity.