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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
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.