Collisions not very nice looking, glitchy

Hi,

I am working on a 3d game were a player moves around on platforms. The player has a rigidbody and a sphere collider. the platforms have box colliders. When the player jumps up to a platform and hits the edge of the platform and keeps his finger pressed down on the directional key, the character gets stuck in the edge and and jitters about in a very off-putting manner.

I have tried different colliders on the player, I have tried using physic materials, nothing works.

Can anyone help?

Thanks,
David

are you using the character controller? if so try increasing the skin depth, if not you try disabling the forward key if the character is trying to move into a wall while facing it.

firstly thank you so much for replying!

I am not using a character controller.
Disabling the forward key is a great idea but he is colliding with the edge of platforms so doing that would disable all movement when he is standing on a platform. I am going to try and put colliders on each end of the platforms with a tag, so when it collides the key is disabled

Edit: I tried it kind of works but its still glitchy, just not as much

im still not sure what you mean by collide with the edge? usually you go over it and fall to your death, if you mean hit the edge when you fail a jump the answer is simple, when you are in the air or jumping disable the keys until you land on solid ground or fall to your death.

That is exactly what I mean, Thanks for the idea I will try it out!