Using the mouse, select a section of a sphere

Context

I have a spaceship that has a spherical sphere around it - which is the “shield”. The idea is that the player will be able to strengthen the shield, but only in one place (a segment of the sphere). they do this by moving the mouse and highlighting a part of the sphere that is to be strengthened.

The sphere is currently a translucent spherical static mesh.

I need to do three things, firstly, show the player where the section that is strengthened is (say a different color), secondly allow them to move that inner segment’s position within the sphere, and finally record the location of the inner segment (so if there is an intersection I can apply game logic to that hit of the shield).

TIA - Happy with C++ / BP ideas about to achieve this?

Are the sections supposed to be “smooth”, like a radius around the pointer, or is this like literal sections, like chunks of the sphere with defined edges?

I think either would be fine. Smooth might be the best, but also would be ok if it were one of X sections predefined.

For predefined sections I wouldn’t overcomplicate it and just made sphere chunks meshes. That way you can easily control their material, collisions etc.

For Smooth control, the main thing would be to get raycast hit info under cursor (there is a function called similary to this in Player Controller) and store the location of the hit on the sphere.
Then you need to declare some radius of your liking and check if the “hits of the enemies” or whatever are inside or outside of this radius.
For the visual interpretation, I would create a Collection Parameter and create a vector parameter inside - you would set its value to the same as the “under cursor hit location”.
Then you can use it inside custom material to alternate color if the pixel is close to your vector parameter.