Hello I am a beginner in game programming and I've started making 2D platformer game. When my character jumps and gets on top of some AABB platform he stays there but he is constantly vibrating or shaking. I am thinking that it is because I am not resolving the penetration depth? When he is on top of some AABB all I do is change his Y position to that AABB's position.y + size.y so the character stays on top and his Y velocity to 0.
If someone can guide me to right direction on how to make a character walk on top of AABB without shaking it would be awesome!
Thank you in advance.