How to simulate L4D2 Tank Throw Prediction in Unreal 5

Currently my implementation calculates the unit direction of the AI’s location to the Player’s location and just apply a launch impulse to launch the ball. But it is so easy to dodge it so I was wondering it there is a better way similar to how the Tank throws the rock.

Consider a more elaborate description for those who don’t L4D2. :innocent:


You mean to predict lead, right? Either calculate lead on your own (no clue how stuff moves in your game or what the game is), or tap into one of those:

Hope the suggestion is close to what’s needed.

1 Like

Thank you so much, that function is what I need. And yea I should have linked like a video for those who did not know.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.