Physics.GetIgnoreLayerCollision(number layer1, number layer2)
Are collisions between layer1 and layer2 being ignored?
Parameters:
Name | Type | Description |
---|---|---|
layer1 | number | layer1 |
layer2 | number | layer2 |
Returns:
type | Description |
---|---|
boolean | the 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)