Calculate Vector by giving angles and velocity
Posted: Sun Apr 01, 2018 6:27 pm
Hey,
as stated in the title, I need a function which returns me a Vector with the given angles and velocity.
Its similar to creating a trigger_push trigger, where you enter the "pushdir" and speed, for example "0 -90 0" and "1250".
I think it would look most likely like (x, y, z) = (0, -1250, 0) but how could I calculate it for weird angles, like "30 0 45" angle and "1330" speed.
Thanks
as stated in the title, I need a function which returns me a Vector with the given angles and velocity.
Its similar to creating a trigger_push trigger, where you enter the "pushdir" and speed, for example "0 -90 0" and "1250".
I think it would look most likely like (x, y, z) = (0, -1250, 0) but how could I calculate it for weird angles, like "30 0 45" angle and "1330" speed.
Thanks