Getting a Spawn Transform in the direction the player faces and the camera inclination
As the title says, I am trying to spawn an actor (with SpawnActor node) giving him a Spawn Transform so that the actor goes in the proper direction. The context is quite simple : it is a fireball (projectile) the player sends away.
I would like to get a Spawn Transform in the same direction XY the player faces and to modify this vector so that the projectile goes upwards/downwards the same way the camera is inclined.
I achieved the first part (spawning projectile from the player in the direction he faces) without too much trouble. However I cannot figure out a way to just add a modification on the Z axis from the camera inclination without messing up the X and Y axis.
The blueprint I've got right now :
Does what I'm doing make any sense at all ?
Surely there is a much simpler way to just modify Z axis that I missed ?
The blueprint as showed above in video if you want to see it in action : https://www.youtube.com/watch?v=nLcJ8kYT-AQ
EDIT : to simplify the problem we assume we just want it to spawn from the player, not the hand of the player (I guess that translation in space shouldn't be an issue)
Follow this question
Once you sign in you will be able to subscribe for any updates here