Important Considerations when using 2DDL

2DDL

z-depth_no-match

  • Light and colliders should be in the same z-order / z-depth (not supported by minimal variations eg light z = 0  – casters  z = 0.00001f

layer-incorrect

  • Check LayerMask. Make sure you have configured the same  layer in 2DLight GameObject and  Casters.

Captura de pantalla 2015-12-03 a las 19.43.25

  • Boxcollider2D rotation. To prevent strange behavior when using BoxCollider2D, you must have a minimum rotation over caster. Euler z = 0.0001f.

Captura de pantalla 2015-12-03 a las 19.56.27

  • Concave colliders Avoidance. If you have a concave shape, broken down into several convex colliders.

Captura de pantalla 2015-12-03 a las 19.58.35

  • Superimposed Collider Avoidance. do not build colliders that are partially on top of another, as 2DDL work but not detected intersection points.
  • Collider redundant Avoidance. Ensure that there is no caster-clone just below the same collider

Captura de pantalla 2015-12-04 a las 18.41.15

  • Folder of Bugs. If you can not identify or solve your problem, check folder bugs and solutions included inside the package.

physicsSetup

Physics2DSettings > Queries Start In Colliders = TRUE otherwise the system will break.