Search Issue Tracker
Duplicate
Votes
0
Found in
5.1.1f1
Issue ID
707472
Regression
No
CapsuleCastAll has issues when the start of the sweep is intersecting with a collider
How to reproduce:
1. Open attached project
2. Open scene TestScene.unity
- The capsule casts in the scene represent character jump arcs.
- The platform is one way, you can jump up through it but you don't fall down through it (if the capsule sweep starts completely above the platform). To achieve this, the collision mask for the CapsuleCast is set differently if the Y velocity is positive or negative.
- The blue capsule shows each sweep that makes up the jump arc.
- A green capsule shows a valid collision.
- A red capsule shows an incorrectly calculated collision.
3. Try moving the CapsuleCastBug gameobject around the scene
- Note how the capsule turns red when the start of a sweep intersects a collider (or when RayCastHit.distance is zero)
- Workaround: ignore collisions where RayCastHit.distance is zero
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
This is a duplicate of issue #681485