Search Issue Tracker

Fixed in 2019.3

Fixed in 2019.2

Votes

0

Found in

2018.3.0a1

2019.1.0a1

2019.2.0a1

2019.2.0f1

2019.3.0a1

Issue ID

1174519

Regression

Yes

Collider stays behind when GameObject with multiple Colliders is set as child in script of object which moves using Rigidbody2D

Physics2D

-

How to reproduce:
1. Open the attached project("case_1174519")
2. In Hierarchy select "My Child" GameObject
3. Enter Play Mode
4. Observe the Scene View window

Expected result: The Circle Collider 2D is following "My Child" GameObject
Actual result: The Circle Collider 2D is stationary

Reproducible with: 2018.3.0a1, 2018.4.6f1, 2019.1.14f1, 2019.2.1f1, 2019.3.0a11
Not reproducible with: 2017.4.31f1

Note:
- Reproduces only with 2D components, using 3D Colliders and Rigidbody results in expected behaviour

  1. Response avatar

    Resolution Note (fix version 2019.3):

    Reparenting was being aborted after the first Collider2D type was found which is the same logic for Rigidbody2D however this should not have been the case due to multiple Collider2D being allowed on the same GameObject. This is part of the Transform Sync logic and has been corrected.
    -----------------
    Fixed in 2019.2.2f1, 2019.3.0a13, 2020.1.0a1

  2. Response avatar

    Resolution Note (fix version 2019.2):

    Reparenting was being aborted after the first Collider2D type was found which is the same logic for Rigidbody2D however this should not have been the case due to multiple Collider2D being allowed on the same GameObject. This is part of the Transform Sync logic and has been corrected.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.