How to add a rotational pivot point to a 2d sprite?

hello , im making a 2d game and i have these questions :
1- how can i add a rotational pivot point to a 2d sprite (canon type of sprite) and enable the user to rotate the sprite or canon in any direction the user wants to shoot by touch , like in angry birds where the player slides the finger upward or downward , plus the canon sprite is fixed in one place .
2- how to add a line that shows the way the projectile is going to be shot at ?
( please ,see pictures for a better understanding of what i mean )

I haven’t work with 2d sprites at all, but in 3d you would use the ‘find look at rotation’ node to turn the actor. it would probably work in 2d if you don’t use the z axis.

One possible approach would be to attach the sprite to a USceneComponent and rotate that with the player’s input.

Regarding the line - I did achieve this once before in a 3D game. Unfortunately the project is on another hard drive which i wont have access to for a few days. It was a rather untidy approach, if I do recall, but it worked.

Until then, there’s a plethora of material available on the subject if you include the word ‘trajectory’ in your search terms.
Here are a few examples:


https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/9842-visualizing-a-trajectory

Good luck!