I’ve decided to delve back into UE4 after a rather lengthy break and have decided to further familiarize myself with replication, so I thought making a vehicular combat prototype of sorts would work nicely as a starting point. It’s a simple concept, really. Vehicles with one or more turrets mounted on them, aiming towards your cursor target.
Simple, right? Or so I thought, I can’t even get the line tracing working properly. I’ve done line tracing before for weapons and procedural mesh slicing, so I’m fairly acquainted with it I’d say. But I’ve run into an issue now which I believe is due to the camera being attached to a spring arm?
I’m actually not quite sure how to explain what’s going on, so you’re probably just better off watching this video(Epic please add embedding support for Streamable, it’s an amazing platform for hosting short video clips. Far better than YouTube).
For demonstration purposes I’ve attached a big, ugly decal at the impact location. It seems to work as intended when I enter debug camera mode - so something fishy is going on but I’ve been up for almost 24 hours now and I’m sure I’m overlooking something really silly.
So I’m posting this in hopes that some kind soul out there can help me figure out what I’m missing here, or why it’s behaving like it does.