Search Issue Tracker

Fixed in 2017.1.X

Votes

1

Found in

5.6.0b3

Issue ID

865250

Regression

No

Collider.ClosestPoint & ComputePenetration return incorrect result when a collider has it's centre offset with non-zero rotation

Physics

-

Reproduction steps:
1. Open the attached project
2. Select the Cube game object in the hierarchy
3. Under the "BoxCollider" component, move the y axis to -1.5
4. Rotate the Y axis of the cube by 45 degrees and Z axis by 60 degrees.

Result: the line is not drawn correctly, there is a gap between it and the point it's supposed to be touching

Note, this does not happen with any other collider than BoxCollider

Reproducible on 5.6.0b2, 5.6.0b3
Tested on Windows 10

Fixed in: 2017.1.0b2
Backported to: 5.6.1p1

Comments (6)

  1. hippocoder

    Jul 02, 2017 13:47

    Still buggy

  2. Evaldas_Unity

    May 19, 2017 07:54

    Hello everyone : )

    I have edited the issue tracker to clear up the confusion on where this is fixed.
    Once it updates, it should say where it was fixed and where it was backported under the reproduced versions.

    Evaldas
    Unity QA

  3. Simeon

    Apr 12, 2017 20:49

    Confirmed, still exists in 5.6.0f3

  4. judgementAlex

    Apr 06, 2017 05:31

    Currently seeing this bug in 5.6.0f3

  5. TH_Unity

    Mar 11, 2017 14:27

    The bug is not yet fixed!

    When you offset the center of the BoxCollider and then apply rotation to the transform, the point calculated is still in the wrong place.

  6. TH_Unity

    Jan 23, 2017 17:13

    This bug still exists in 5.6.0b4

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.