Search Issue Tracker
By Design
Votes
0
Found in
2017.2.0b11
Issue ID
951618
Regression
No
Physics.Raycast hits ghost collider if gameObject has attached Character Controller and Physics.autoSimulation is set to False
Steps to reproduce:
1) Download attached project 'BugReport_Physics_Raycast.zip' and open in Unity
2) Open scene 'Scene' and press Play
3) Select 'Player' gameObject and change the position of X axis in the Inspector window
Note that physics.Raycast hits ghost collider
Expected result: Raycast should detect updated gameObject with Character Controller attached (check attached video 'expected.mp4')
Actual result: Raycast hits ghost collider (check attached video 'actual.mp4')
Reproduced with: 2017.1.0b2 2017.1.0f1, 2017.1.1p2, 2017.2.0f1, 2017.3.0b1
Note that Raycast does not hit a ghost collider if Character Controller on the gameObject is disabled and Capsule collider is attached
Physics.autoSimulation definition was included from Unity 2017.1.0b2
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
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- Error "InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings." is present when using UI Toolkit and New Input System
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
- [Linux] The mouse wheel input is inverted when scrolling in the Build
Peter77
Sep 22, 2017 13:16
You can find out why this issue has been closed "By Design" in this thread:
https://forum.unity.com/threads/case-951618-physics-raycast-hits-ghost-collider.495817/