My object gets stuck inside a collider of different object...,My sprite gets stuck inside a collider...
I'm new to Unity, and currently making a 2D platformer. And in my quest I've come across this weird problem... so I need a little help, as I just can't figure out why this is happening.
Basically, I have made two blocks or can say tunnels which acts like a portal. So if my ball falls under the block A then it comes out of block B. So in my case, the block B is at the top of the screen and A at the bottom. So if I fall under block A, then I'll come out of block B falling down.
So it all works perfectly if I control the ball normally. But I thought how about testing the movement a little more crazy way, so I started pressing buttons repeatedly either left or right ( it's for mobile so I have a UI for that ). But if I do this then the ball gets stuck inside the block B when trying to come out during the transition.
Also as a side note, if I try to press buttons repeatedly then the portion of the ball appears visible throughout that block's edge even though I've colliders surrounding the edges. This doesn't happen if I play normally, but I'm pretty sure some people sometimes like to smash buttons repeatedly and for that I don't want a bug like this to happen.