WithinDistance wrong OverlapSphere

..Tom..

New member
There seems to be a bug in the WithinDistance task. Where it decides between 3D or 2D physics, the OverlapSphere and OverlapCircle are the wrong way around (i.e. it uses OverlapCircle for 3D and OverlapSphere for 2D physics).
 
What line are you seeing that on? Line 81 of WithinDistance uses OverlapCircle when usePhysics2D is true, and line 89 uses OverlapSphere when usePhysics2D is false.
 
Not 100% sure about line numbers because I edited it, but for me the "if (usePhysics2D)" check is on line 71 and the Overlap checks on 72 and 79 (should be 77 without my added code, I think).
 
I see that now! Thanks for the heads up. My local version is correct but the Asset Store version isn't. Time to do a Movement Pack update :)
 
Top