Skip to main content

Physics.GetIgnoreCollision(Collider collider1, Collider collider2)

Checks whether the collision detection system will ignore all collisions/triggers between collider1 and collider2 or not.

Parameters:

NameTypeDescription
collider1ColliderThe first collider to compare to collider2.
collider2ColliderThe second collider to compare to collider1.

Returns:

typeDescription
booleanWhether 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)