Search Issue Tracker
Won't Fix
Won't Fix in 2023.3.X
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.
Resolution Note (2023.3.X):
Raycast does detect hits with the Character Controller Collider.
Making the character controller collider with Radius: 0.5 and Height: 3, triggers the action.