Sliding to sensitive

So i have 2 boxes and one is a player. When the obstacle (Thing falling from the sky) lands on the player and I go back and forth the obstacle slides off to easy how do I make it stick a bit more ro the player and make both the player and the obstacle be less slipperey when moving


Use PhysicsMaterial2D with Friction set to a value you requireand assign to the Rigidbody2D/Collider2D in question.

Do i assign it to the player or the obstacle?

Because ive tried both and the obstacle still slips off the player way to easy. But thanks to your tip the player does move better. I am still confused though on how to make the obstacle slip off the player harder.

It will make a huge difference unless you’re not letting physics do the movement and are doing stufflike modifying the Transform which you should never do.