Physics.GetIgnoreCollision(Collider collider1, Collider collider2)
Checks whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.
Parameters:
Name | Type | Description |
---|---|---|
collider1 | Collider | The first collider to compare to collider2. |
collider2 | Collider | The second collider to compare to collider1. |
Returns:
type | Description |
---|---|
boolean | Whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not. |
Usage
---@type Collider
local collider1;
---@type Collider
local collider2;
local val0 = Physics:GetIgnoreCollision(collider1, collider2)