How can i make my emitter rotation change according to the surface it spawns on?
I am currently trying to make a spell that bursts from the surface of where i aim. So far i have managed to make it spawn wherever i aim using line tracing but it doesnt take into account what kind of surface it hits. This means that whenever i shoot the floor it works just fine and the emitter is orientated correctly but should i shoot a wall the emitter doesnt line up (see picture).
any ideas of how i can implement orientation of the spawn location so that my emitter lines up correctly?
Follow this question
Once you sign in you will be able to subscribe for any updates here