Thanks
Just to note this is a simple “Client side” only approach. If you’re building for multiplayer there are a few changes needed to make this work with the server. More so to have the servers trace match up with the clients.
Here’s the MP version w/added projectile velocity option. e.g. if your projectiles use “velocity” instead of “Initial Speed”.
Returns:
Transform (Muzzle Location, Look At Rotation)
Normalized Vector (projectile trajectory vector w/out muzzle velocity)
Velocity Vector ( Normalized Vector * Muzzle Velocity)