1
\$\begingroup\$

I´m having a problem with my game (yes, I'm new with Unity). I'm trying to make a simple 2d platformer and I ran into this situation:

Youtube Link

As you can see, when the player hits the BoxCollider from the side, it tries to get a hold of it instead of just keep going down...

These are the properties of my player: enter image description here

And the block only has the default box collider.

Any ideas? Thanks!

\$\endgroup\$
0
\$\begingroup\$

It seems you are returning grounded when against a wall so you are able to see a walk animation and also jump.

If you are using a ground layer to determine the ground then just create the walls on a different layer so you will not return grounded and will fall normally.

Adding a slipping effect using a physics material on a collider could also work around that issue if you are not using layers.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .