View Single Post
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-24-2020 , 17:22   Calculate velocity to point X
Reply With Quote #1

Hi,

So I'm looking for a way to calculate how much velocity it would require to give to the entity, to reach point X (whereas point X is player aiming origin).
I'm using velocity_by_aim and MOVETYPE_TOSS (MOVETYPE_TOSS so gravity can pull the entity down, making it more realistic).

An example in real life:
Calculating how much force it would require to throw a rock so the rock can fall on point X.
__________________

Last edited by edon1337; 03-24-2020 at 17:22.
edon1337 is offline