![c++ – How to automate strafe leaping? c++ – How to automate strafe leaping?](https://thefuntrove.com/wp-content/uploads/https://cdn.sstatic.net/Sites/gamedev/Img/apple-touch-icon@2.png?v=9bca23db2259)
[ad_1]
I’m an entire noob relating to math so excuse my ignorance. I’ve making an attempt to automate strafe leaping (from the quake engine) into one other quake engine primarily based recreation. I’ve tried a good bit to get this to work however I am unable to wrap my head across the math and what I’m speculated to do with it.
This hyperlink right here completely describes the right way to strafe soar & the mechanics concerned. I’ve lots of the calculations from it applied, however I do not know the right way to go about automating the strafe leaping.
Would it doable for somebody to indicate some pseudocode on the right way to implement an automatic approach to obtain this? I principally want the participant to mechanically strafe on the most optimum angle from solely urgent W + A or W + D.
Thanks!
[ad_2]