It doesn’t completely clip through, rather gets stuck on the ground. Could anybody help me with this?
Try setting the rigidboy’s interpolation value to RigidbodyInterpolation.Interpolate
or RigidbodyInterpolation.None
for your character, most of these types of physics errors are a product of interpolation trying to predict where the character “should” be in the next frame, and sometimes it can overshoot the prediction thus landing you past the ground’s collider for example.
Try setting in your Rigidbody2D
Component this:
Collision Detection
= Continuous
Sleeping Mode
= Never Sleep
That should fix the issue
Try setting the collider on your player from Discrete to Continuous