Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4
2019.4.0f1
2020.1
2020.2
Issue ID
1257210
Regression
No
Physics.CheckCapsule method returns false when capsule is touching the edge of the collider
How to reproduce:
1. Open the attached project "1257210.zip"
2. Open the "Test" Scene
Expected result: green wire sphere Gizmo is displayed in Scene View
Actual result: red wire sphere Gizmo is displayed in Scene View
Reproducible with: 2018.4.24f1, 2019.4.2f1, 2020.1.0b13, 2020.2.0a15
Notes:
- The project contains two duplicate tests that are supposed to test this issue, however, running them may give different results each time although they are not impacted by anything that would change over time
- The project is set up to draw red Gizmo when Physics.CheckSphere and Physics.CheckCapsule methods return different results, as CheckCapsule method is passed the same position for its start and end coordinates - it should always return same results as CheckSphere method
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
- Editor crashes on D3D12GetInterface when repeatedly enabling and disabling 256 text components
Resolution Note:
The user in this case is using Physics.CheckCapsule as a Physics.CheckSphere, using both points in the same location which is no the intended use for the function as those are two different primitives in PhysX that result in different behavior. Using Physics.CheckSphere instead should fix the issues related.