- Home /
Question by
thevengeous7 · Feb 19 at 05:58 PM ·
anglestrigonometry
Need help with artillery angle of reach prediction
Hello! I'm trying to make artillery for an rts game, but I've run into a problem with my angle of reach code. The shallow angle works fine, but the steep angle doesn't work, it always falls short or just misses. I've tried multiplying and dividing stuff, and the closest I've gotten to my target is by multiplying the Mathf.Acos(angle) by 2. I suspect it might be something in the projectile script, but I'm not sure. Any help is appreciated, as I've been trying to fix this for about a month. Thanks in advance! Artillery script, Artillery gun inspector, Projectile script, Projectile Inspector, Projectile motion wiki
Comment