Hi,
I’m experimenting with a setup similar to the topdown template. I have my character firing a rifle at enemy characters. I’d like to spawn a bullet impact emitter at the enemy character that is being shot at. However I don’t know how to calculate/find the correct location to spawn the emitter at. I want it to be at the direction which my character shoots at so that it looks realistic. I don’t want to use actual bullet objects that fly around and deal with projectiles and collision. I just have my character facing an enemy character and I want the fire effect to be just muzzle flash from the rifle and bullet impact at the enemy character.
In other words if the enemy character is facing my character I want the bullet impact emitter to be spawned at its chest for example and if the enemy character is facing the opposite direction I want the emitter at its back. See the attached screenshot.
How can I do that?
Thanks.