Hello, I am trying to use a layer mask with a raycast and trying to figure it out. I have one layer, which is layer 3 in the dropdown box in the inspector. And I have that assigned in code using layerMask = 1 << 3. However I am confused by this, is this the same as bitshifting? if so wouldnt this result in 8 and not layer 3?
I am trying to create another layermask to be used with items on layer 0 in the drop down box in the inspector. How would i assign this in code?