Object Placement in a Grid

I need to create a prototype with primitive objects (as of now) where I can place objects on a grid (2x8 kind layout) by holding the object through a mouse click and hovering them over the grid sections where the objects snap on to that particular grid section over which the mouse is.

For reference: Unity 3D object placement in a grid - YouTube

I am from Unity background and new to Babylon, please guide me on the approach or any pre-existing projects/tutorials which I can learn from.

Hello and welcome to the Babylon community! I recommend checking this topic out, the ideas can help you get started Collision and “attachment points” - Questions - Babylon.js (babylonjs.com)