- Home /
Object with Rigidbody slips off corners of static platforms
Hi! I have a problem in my game where for some reason the player slips off platforms when standing on a corner. The player object has a Rigidbody2D in Dynamic and a Box Collider component. I know that probably making the platform's colliders bigger is a solution, but if a better one exists I would like to know it since I am just starting to learn to use this engine.
Answer by ThomasAqtl · Sep 27, 2021 at 09:52 AM
Does your player rotates around an axis when slipping off ? If so, try to freeze rigidbody's rotation. See this page : https://docs.unity3d.com/ScriptReference/Rigidbody-freezeRotation.html You can use checkbox in inspector directly if you wish : Regards
It did not, I solved that rotation in a script because I did not see that part of the Rigidbody component. I now checked that box and it actually worked! Thank you!
Your answer
![](https://koobas.hobune.stream/wayback/20220613043519im_/https://answers.unity.com/themes/thub/images/avi.jpg)