sets one layer for raycasting (e.g. layer 4, only objects on layer 4 will then be hit)
Parameters
layer: number
Returns void
setMask
setMask(mask): void
sets the layer.mask value directly, use setLayer if you want to set e.g. an individual layer only active. See https://threejs.org/docs/#api/en/core/Layers for more information about layers
sets one layer for raycasting (e.g. layer 4, only objects on layer 4 will then be hit)