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
- Shader Graph Swizzle Node Input/Output and Mask Update Incorrectly After Undo
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
This is a duplicate of issue #681485