What is the best way to visualize a grid system for players when placing a block, so that players can kinda know where the block will be when the move it?
For example, I have a floating block, and it doesn’t immediately make sense why it floats, but with a little math, it does.
The block is 1 stud tall. That means it’s position (which is the center) needs to be 0.5 studs off the ground for it appear to be sitting on the ground. However, my grid increment is also 1, which means that 0.5 isn’t allowed, only multiples of 1 are. So, therefore, the block’s position is either 1 or 0, but 0 isn’t allowed because the block would be halfway in the ground, so the result is 0.5 studs off the ground, floating. Hopefully that wasn’t too complicated.
I want to communicate that visually, by showing where the block could potentially be. Any ideas?
Also, I want to mention two things: The grid is adjustable, from increments of 0.001 to 10,000. The video shows it at 1, as described in the example. And finally, the grid extends into the third dimension, so this happens on walls too.
You can manually create a grid board with parts of the same dimensions, and then, highlight where it’s being placed with green color. I’m not a fan of textures because I don’t get that much control and textures on this platform have a tendency to stretch. If you have flat areas that are rotated (on a wall), you can generate the grid based on the size and use the surface normal.