Search Issue Tracker

Third Party Issue

Votes

1

Found in

2017.4.0f1

2018.3.0a1

2018.4.4f1

2019.1.0a1

2019.2.0a1

2019.3.0a1

Issue ID

1172187

Regression

No

Physics.ComputePenetration returns false for some collider combinations when collision depth is small

Physics

-

Steps to reproduce:
1. Open project (PhysicsComputePenetration WithMeshRenderer.zip)
2. Open the Main scene
2. Select collider and CapsuleWithMesh object

Expected result: Physics.ComputePenetration returns true on all collisions depth amounts
Actual result: Physics.ComputePenetration returns false on a small amount of collision depth

Reproducible with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11
Not reproducible with: 2020.2.0b1

Note: This happens with Mesh Collider and Capsule Collider combinations

  1. Resolution Note:

    This issue happens to be a rare one that is related to the particular triangulation in this mesh, so we'd suggest re-triangulating it so that it's a more regular one (meaning triangles being of comparable size, avoiding long thin ones as well as very large ones too).

Comments (1)

  1. OnikiKay

    Jun 21, 2022 23:18

    That's not an acceptable resolution. The code have to be reliable in any case and especially when the mesh collider is generated by the Editor.

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.