weird sliding on collision corner

Hi again.. so I'm still playing around with boxes.. Right now I have a box character on top of a ground being controlled by AWDS keys.. one thing i noticed is that when my box character is on the very edge of the ground, it begins to slowly slide off of it, even though the ground and the box characters are flat and the rotation of the box character is clammed at 0 in code.. any ideas how i can fix this? thx

Do you have a rigidbody with gravity on and do you have any physic materials applied? If gravity is turned on and your physic materials end up generating friction of 0 then your object will slide.

If an object with gravity's center of mass is over the edge and the calculated friction is low enough, it can also cause the object to slowly fall over the edge as well, but this is actually the proper behaviour.