Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.30f1
2022.3.8f1
2023.1.11f1
2023.2.0b7
2023.3.0a3
Issue ID
UUM-47055
Regression
No
Raycast does not detect hit with the Character Controller Collider when casting it towards the Camera which is inside the Collider
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene.unity” scene
3. Enter the Play Mode
4. Walk in front of the NPC, so that you enter his field of vision
5. Observe the Console
Expected result: Raycasts detect hits with the Character Controller Collider (“Raycast has hit Player” log message appears in the Console)
Actual result: Raycasts does not detect hits with the Character Controller Collider (“Raycast has hit <GameObject behind the Player>” log message appears in the Console)
Reproducible with: 2021.3.30f1, 2022.3.8f1, 2023.1.11f1, 2023.2.0b7, 2023.3.0a3
Reproducible on: Windows 10 Pro 22H2, Ubuntu 23.04
Not reproducible on: No other environment tested
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
- 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
- Flickering bright white dots in the Scene when the Android Platform is selected and DX11 Graphics API is used with Iris(R) Xe Graphics GPU
- Inconsistent capitalization and misaligned text in multiple query blocks in Search window
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
Resolution Note:
Raycast does detect hits with the Character Controller Collider.
Making the character controller collider with Radius: 0.5 and Height: 3, triggers the action.