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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
This is a duplicate of issue #681485