Search Issue Tracker

Fixed in 5.5.0

Votes

2

Found in

5.3.0b6

Issue ID

753730

Regression

No

Physics queries detect backfaces inconsistently

Physics

-

Steps to reproduce:
1. Download and open project "SweepCastTest.zip"
2. Open and play scene "Scene 2"
3. Actual result: Notice in console, when the collision occurred, message was printed. For BoxCastAll there are three messages, for BoxCast, SweepTestAll and SweepTest there is only one
Expected result: Every collision generates messages, resulting in three messages for each (of four - BoxCastAll, BoxCast, SweepTestAll, SweepTest) of collision detections

Note: Some of these functions were not present before Unity 5.3

Reproducible on:
Windows 10
Unity 5.3.0p1, 5.3.1p2, 5.4.0b1

Comments (3)

  1. hippocoder

    Aug 09, 2016 04:05

    Happens with spherecast and large thin box colliders too.

  2. Nyxo

    Mar 31, 2016 15:12

    I created a bug report earlier and was told this it was a duplicate of this issue. For archiving reasons, here is the link to my original bug report, which may provide more information on this topic: https://fogbugz.unity3d.com/default.asp?783310_73mm7k2depstml6h

    This is blocking me as well. I rely on the sweep methods that will return multiple hits, however they all generate hits on backfaces. Only the sweeps that return a single hit will properly ignore them, but single hits are insufficient for my needs.

  3. hippocoder

    Mar 16, 2016 04:46

    Lost 2 days work on this issue. Tried with a plane and my issues were fixed, so I can verify with BoxCast, and SweepTest, the returned raycasthit has inconsistent data on cubes or more complex models with backfaces.

    Showstopper, so I had to resort to using spherecasts everywhere as a hack patch.

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.