Help me align this cubes, please!

I’m having trouble aligning these snapping cubes. Does anyone know if there are nodes in BP that help with stuff like this? Does anyone know an equation that will help?

Any discussion on how to start to attempt to solve this would be awesome!!

vid of my problem: Notice the gap when the cubes snap together.

Instead of using Set Location, try Set Location & Rotation, then feed it the “get actor rotation” from the cube next to it, so that it aligns them.

Hey **SB1985, **

The AXIS orientation is different. if I use ‘Get Actor Rotation’, the attaching cube (held cube) will spin around to match its axis orientation to the target cube. I would like to adjust the attaching cube so that it keeps its current orientation while making itself parallel. In this case the Z axis has to align to the X axis

I see, maybe try something like this WTF Is? Snap to Grid in Unreal Engine 4 ( UE4 ) - YouTube

I tried that already. The issue with that is that the Target object is not sitting on the grid. Would be cool if I can define my own grid space, but not sure how to do that. XD

Solved!

I found that rounding the rotation values to the nearest 90 deg worked.
https://youtu.be/yQlEk_RUNW4