raycast support for visibility checks