// 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:oops:
Natsheh
05-26-2021 07:34
Re: X Y Problem Projectile motion
Quote:
Originally Posted by OrangePeel
(Post 2747833)
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:oops:
yes, and no its not just a parabolic motion that i need, its actually called trajectory
fysiks
05-26-2021 23:37
Re: X Y Problem Projectile motion
Quote:
Originally Posted by Natsheh
(Post 2747861)
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.