- Home /
Question by
JeffBert · Jun 12, 2018 at 01:46 PM ·
physics2dcollision2draycasthit2d
Raycasting exclusively on trigger colliders
ContactFilter2D allows you to filter out triggers when casting on colliders (but not non-trigger colliders it seems). I was wondering if there was a way to filter out non-trigger colliders (and cast exclusively on trigger colliders). I'm aware that I could cast against all types of colliders and filter them out afterwards but I wanted to know if there was a more efficient way to do it. Thanks.
Comment