YaLTeR / BunnymodXT

Speedrun and TAS tool for Half-Life & friends.
Other
198 stars 37 forks source link

Visualise projectile trajectory #8

Open Matherunner opened 7 years ago

Matherunner commented 7 years ago

It can be useful in more complex runs to be able to quickly visualise the full trajectory of projectiles, primarily hand and MP5 grenades, without actually tossing/firing them. This is more useful for hand grenades as predicting how it's going to bounce around without tossing can be non-trivial. Figuring out the exact view angles, position, velocity, and time to toss a hand grenade so that it lands on the right spot is often an exercise in frustration.

Normally, the trajectory plots should be updated in real time as you move your position or camera around. But it should be possible to make them fixed in place temporarily so that you can move around to explore and study the full trajectory.

This feature may require reimplementing the essential parts of entity physics for trajectory prediction. Plotting the trajectory can be done using TriAPI.

YaLTeR commented 7 years ago

Could probably try calling the engine as well since the projectile physics are there.