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
| Type | Name | Description |
|---|---|---|
int | mask | Current collision mask bitmask |
Examples
local entity = physics.character.create()
core.engine.print("info", "Character body collision mask:", entity:get_collision_mask())