self:get_collision_mask

Client

Retrieves the collision mask bitmask of the static body


Syntax

local mask = self:get_collision_mask()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intmaskCurrent collision mask bitmask

Examples

Get the collision mask of a static body
local entity = physics.static.create()

core.engine.print("info", "Static body collision mask:", entity:get_collision_mask())

On this page