CanCollideWith

Constructor:

CanCollideWith()

Description

Returns whether itself can be involved in a collision or not.

Return Value

Type Description
bool The judgment result returned, True or False

Examples

Create a part p1 and retrieve whether it can participate in a collision or not.

local p1 = RWObject.Create("Part") -- create a part
local value = p1:CanCollideWith() -- retrieve whether it can collide
print(tostring(value)) -- output whether the part can collide or not