Search Issue Tracker

Fixed in 5.0.X

Votes

0

Found in

5.0.0b8

Issue ID

639564

Regression

Yes

Disabled mesh collider registers to Raycasts

Physics

-

The scene contains a GameObject1 -> Gameobject2 -> Cube hiearchy. Gameobject2 is disabled (And thus, Cube is also disabled). Cube has a Mesh collider generated upon Start(). A Raycast is sent, and it hits the generated Mesh.

To reproduce:
1. Open attached project
2. Open TestRayV2 scene
3. Enter play mode
4. Click in the middle of the game window
Expected result: no collision
Actual result: Collision
Note: After clicking you'll notice that the hierarchy focuses on the disabled collider. That's the script, upon click it sends a raycast and selects the gameobject with which it colliders.

Add comment

Log in to post comment