Search Issue Tracker
Won't Fix
Votes
4
Found in [Package]
0.6.0-preview.3
Issue ID
1369770
Regression
No
ColliderCastHit.Position returns NaN when SphereCasting to Capsule Collider with Vertex1 = Vertex2
Reproduction steps:
1. Open attached project "1369770_SphereCast"
2. Open Scenes/Empty
3. Open Scripts/TestCapsuleSphereCast/CapsuleSpawnSystem and uncomment line 22 and comment-out line 23
4. Save the Script and enter Play Mode
Expected result: ColliderCastHit.Position is the position of the hit
Actual result: ColliderCastHit.Position is NaN
Reproducible with: 0.6.0-preview.3 (2020.3.20f1, 2021.1.26f1, 2021.2.0b15, 2022.1.0a13)
Could not test with: 0.4.1-preview (2019.4.32f1, Compiler error: The type or namespace name 'Entities' does not exist in the namespace 'Unity'), 0.5.1-preview.2 (2020.3.20f1, 2021.1.26f1, 2021.2.0b15, 2022.1.0a13, Compiler Error: 'CollisionWorld' does not contain a definition for 'SphereCastCustom' and no accessible extension method 'SphereCastCustom' accepting a first argument of type 'CollisionWorld' could be found)
Notes:
- ColliderCastHit Fraction and SurfaceNormal is also NaN
- Position checking is in Scripts/TestCapsuleSphereCast/SphereCastSystem in line 91
- If you are getting "An error occurred while resolving packages:" errors, remove "com.madsbangh.easybuttons" package in the Package Manager
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Assert error is thrown when the Editor language is set to one of the experimental ones in an HDRP project
- A BatchDrawCommand is using a pass from the shader “Universal Render Pipeline/Particles/Lit” that is not SRP Batcher compatible
- The Scene does not get rendered in the Player when MSAA is enabled and more than one Camera is used
- Crash on mono_object_get_class when generating Font Atlas of a specific font file
- GPU usage doubles when a project is running in the background
Add comment