Hi, I'm trying to make objects snap together at predetermined points.
It is for a space exploration game that involves the construction of modular space stations. The modules are different shapes and sizes depending on what they are for, and have varied numbers of “Connection Ports” depending on their configuration.
The problem that I am having is that I can not figure out how to get the modules to snap together. I've read up on quite a few relevant topics and tried everything I can think of, but nothing seems to be working.
I've been experimenting the most with image points on Connection Ports which spawn connector sprites that are then pinned to the Module.
I think a lot of the problems I am running into are a result of the fact that I don't know how to tell the game engine which connector sprites belong to which modules. In one of my attempts, the modules were violently shaking because they were trying to connect with themselves.