I am an entire noob on the subject of math so excuse my ignorance. I’ve attempting 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 can not wrap my head across the math and what I am purported to do with it.
This hyperlink right here completely describes how you can strafe leap & the mechanics concerned. I’ve a number of the calculations from it carried out, however I do not know how you can go about automating the strafe leaping.
Wouldn’t it doable for somebody to point out some pseudocode on how you can implement an automatic solution 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!