Search Unity

Physics2D.BoxCast bug in 5.1.0f3?

Discussion in 'Physics' started by cjddmut, Jun 12, 2015.

  1. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    179
    It appears that with 5.1.0f3 Physics2D.BoxCasts will not detect a collider if it starts inside of it. I ran a simple scene test where a Physics2D.BoxCast is cast across the collider and this works fine, but if the BoxCast starts in the collider then it won't detect it.

    Yes the option 'Raycasts Start in Colliders' is checked in the Physics 2D settings.

    Worth noting that Physics2D.RayCast does not appear to have this issue.
     
  2. cjddmut

    cjddmut

    Joined:
    Nov 19, 2012
    Posts:
    179
    Looks like 5.1.0p1 fixes it.
     
  3. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    11,459
    Yes, unfortunately due to the way fixes get ported forwards to new versions, some of the fixes in the 5.0 patch didn't make it into the 5.1 release but made it into the 5.1 patch release. For the future, this'll work differently so hopefully this shouldn't happen again.