Grid movement system

Hey! Here is what I wanna make for my game:
A grid based movement in a 3d world controlled with swipes where it will be possible to rotate the camera, add some npc that can also move in this grid, and obstacles that will be impossible to go through. Further I wanna add some stairs, so the grid should allow to go up the stairs.
I have a lot of ideas how to realize it, I have already made it with a simple global grid, but it looks kind of dumb. Could you recommend me how to make a better grid system for my purpose?

Howdy,
Great too hear you are having fun with game development. If you’d like to get some fun introduction videos I could recommend CodeMonkeyUnity channel. Before joining Unity I’ve been using his videos as helping material on how games implement various systems.

Regarding grid systems you can either use built-in system Grid with multiple layers by using array object to implement stair functionality or if you’d like to get you hands dirty 3D array structure is what you are looking for.

If you need any pointers feel free to reach out and welcome to game development ;))

Hey! Thank you a lot for your feedback^)
I know CodeMonkeyUnity, he’s really cool.
I’ve already made my Grid as a 2d Array of Vector3. The problem is with the camera rotation. To check it I need such a dumb thing:

Probably someone can propose a better algorithm

I’d be happy to help, but I’m somewhat confused on what this code snippet is doing. Could you do summary on what you expect from this functionality? If I’m not mistaken you are doing manual ray casting. For that I’d recommend article from Medium. It’s short and to the point