How to add a grid snap in my part dragging system

Like this one, I really found it interesting:

2 Likes