self:get_collision_mask

Client

Retrieves the collision mask bitmask of the character 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 character body
local entity = physics.character.create()

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

On this page