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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Lightmaps are baked incorrectly for GameObjects when their Position is <=-2048 or >=2048 on any of the coordinates
- Sahder errors in Player when "Strict shader variant matching" is enabled and the rendering path is set to "Deferred"
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
hippocoder
Aug 09, 2016 04:05
Happens with spherecast and large thin box colliders too.
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.
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.