I have a colliding object which can come from any direction, and I would like to check the position relative to the center of a sphere.

[![enter image description here](https://i.stack.imgur.com/SqWHZ.png)](https://i.stack.imgur.com/SqWHZ.png)

My idea was to create a vector with the same direction as the arrow that went through the center of the sphere and then check if the arrow position is over or under the new vector, but I don't know how to achieve this.