Rotating, and shooting, Turrent

how do you make something similar to a shooting turrent
image
but instead of unity i want it in playcanvas, and it needs to be 2d

2d but not sprite based
heres the project
https://playcanvas.com/project/876716/overview/trigo-run