I see. So what I posted above will make little sense.
If we’re using the mouse to aim and the turret points where the mouse traces into the world::
Do note that you may not need the canvas for this at all (one less widget to worry about). You can position a widget in the viewport directly. But a canvas may be useful for other things, of course.
- or do we rotate the turret and it then aims along the barrel’s forward?