2D Topdown grid movement for sprites in 3D space

Hey there. Me and a friend have been spending the past week or so beginning to develop something akin to one of those old topdown RPG games while using some 3D objects, like buildings or ramps for example, in the mix. The issue is while we’ve managed to stick character movement on a four directional 2D grid the object the sprite is on phases through any existing 3D Objects and when given a collider simply seems to go inside and get itself ejected ,rather violently flying across the map in the process.

So what I’m asking is how exactly would I, or could I, go about this. Making it so the sprite square moves along in a grid, doesn’t move through solid objects, and manages to go up inclined surfaces?

im building a 2d game too and used rigidbodies and colliders, had the same problem. now i use Character Controllers and its working perfectly.

start with this script move script for CC

and read the documentation for further knowledeg on CC