Issues with projectile orientation
Posted: Fri Apr 23, 2021 11:31 pm
I had this idea in my head to create a weapon that would shoot trains. I ended up getting ahead of myself and worked on the code first, thinking the actual animation would be simple. However, it took me quite a while to realize that since the train is a 3d object I can't simply just rotate it like with the 2d bullets. Is there a way to find the angle at which the player is shooting to orient the train correctly? I've also considered creating a custom entity just to render a train over the actual projectile, but I'm not really sure how to do that and if it's worth the effort.