Search Issue Tracker

By Design

Votes

0

Found in

2017.4.0f1

2018.3.0a1

2018.3.0f2

2019.1.0a1

2019.2.0a1

2019.3.0a1

Issue ID

1114763

Regression

No

Collision bumps when crossing from one Box Collider to another

Physics

-

How to reproduce:
1. Open attached project "Case_1142326_collision.zip"
2. Enter Play Mode
3. Use D and A keys to move left and right
4. Move left and right on the ground

Expected result: Player never gets stuck
Actual result: Player sometimes gets stuck

Reproducible with - 2017.4.26f1, 2018.3.14f1, 2019.1.1f1, 2019.2.0a13, 2019.3.0a1

  1. Resolution Note:

    Unfortunately this is an innate quirk of the physics engine that can't be easily fixed. It can be worked around by one of these methods:
    1. Using a Sphere Collider or a Capsule Collider (or a few of them, if necessary) to avoid sharp edge collisions altogether
    2. Combine the individual shapes into a single mesh
    3. Reducing the Default Contact Offset to a smaller value. In the provided project it's set to 0.01 and setting it to 0.0001 nullifies any problems

    Modern games that are Physics driven tend to use a combination of the above methods.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.