Question by
oscarkim · Feb 05, 2018 at 07:55 AM ·
physics2draycasthit2d
How to make Physics2D QueriesStartInColliders false in script without affecting global query while using touchInput/ mouse input?
I am making a 2D game with physics2D. I need queriesStartInColliders to be false in order for collision detection to work properly but when put "in script", it affects the global queriesStartInColliders and disables touch input or use of mouse click/input with vector2.zero. Is there a way to make Physics2D.queriesStartInColliders = false; in script only affect that specific raycast? I could not find this in answers :)
Comment