Hello, I need create game, where player have some components and he need join components. Each component may have 2 or more connection point. So, when player move component to other component and they points near they must be connected.
My question: How I can check point to point connection?
I would probably create child entities around an object that you want to have connection points. The child entities would represent the connection points (and also infer an orientation for items that are to be connected). When connectable items come within a threshold distance from a connection point, they can snap into position.