Snapping objects together IN GAME

Howdy folks!

I am trying to work out how to snap objects together in a game (a bit like how parts of your starship snap together in pre-defined slots in Starfield).

This needs to work in 3d with objects that you spawn and then you can move about with your mouse.

I’ve put sockets on my objects at the connection points but literally have no idea where to begin getting them to actually snap together in-game.

Any vids or hints would be massively appreciated!

I made my building system based on this video series:

UE4 Base Building Tutorial Series Preview

It works for UE5.6. I had to modify it heavily for my situation (building modular space stations). Its more of a 1st/3rd person setup, but you may be able to modify it to work with the mouse instead.

1 Like

(post deleted by author)