- Home /
How to keep 2D objects from getting stuck when sliding on each other.
I'm very new to unity and coding and everything so sorry if this is an easy question. I have a 2D box that I want to slide along another 2D box but when it moves along, it gets stuck and stops moving. There is a RigidBody2D component on both the ground and the sliding box and both also have a box collider. If I make the force on the box really large, it will slide along the ground without getting stuck but I don't want to have to do that. Is there any way I can fix this? Thanks in advance.
Answer by TheDarkVoid · Apr 25, 2015 at 02:44 PM
You can change the physical materials on the ground and or box. Look at this for details. In your case you might want to lower the friction.
Your answer
![](https://koobas.hobune.stream/wayback/20220613193951im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I partially repaint sprite? 0 Answers
2D environment manipulation 0 Answers
Adding texture to cube 1 Answer
How can I open the Sprite Editor from script? 1 Answer
Create an animated sprite from a folder. 0 Answers