I am working on creating a Tool-set/SDK for a game the was previously made.
Right now I am trying to get a grid working to be able to place objects during play but I can not seem to get a grid system to work (snapping to planes in general). In the grid system, grid spots will transfer coordinates for the items placed to another scene where the player will be able to walk around and mess with what was placed. I tried using GUI elements to recreate a grid system but that didn’t seem to work due to multiple problems.
What I want to do is be able to snap the X and Z coordinates of an object that I am dragging to the plane it is over. I already have an infinite spawning system for the objects and I can place them anywhere in space but I need to be able to get them to snap.
I have been stuck on this problem for a while and would really appreciate anyone’s help or input. If you have any questions feel free to comment or ask.