<aside> ℹ️ Project: Toy Trains Date: 03/2022 Context: The design of the most fundamental system in the game - placing objects on a grid.
</aside>
When the object's distance to the grid is equal or lower than the snap distance, preview is activated.
Preview is activated and placed on the calculated snap position.
When preview is active, model grabbed in the hand disappears. Put it another way - at the same time, only one of the objects (either object in the hand or object's preview) can be active.
Preview has a transparent gray material.
When the player release the pinch button in the snapping mode, object is placed on the grid and preview disappears.