Skip to main content

Physics.GetIgnoreLayerCollision(number layer1, number layer2)

Are collisions between layer1 and layer2 being ignored?

Parameters:

NameTypeDescription
layer1numberlayer1
layer2numberlayer2

Returns:

typeDescription
booleanthe value set by Physics.IgnoreLayerCollision or in the Physics inspector.

Usage

---@type number
local layer1;

---@type number
local layer2;


local val0 = Physics:GetIgnoreLayerCollision(layer1, layer2)