self:get_collision_layer

Client

Retrieves the collision layer bitmask of the animatable body


Syntax

local layer = self:get_collision_layer()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intlayerCurrent collision layer bitmask

Examples

Get the collision layer of a animatable body
local entity = physics.animatable.create()

core.engine.print("info", "Animatable body collision layer:", entity:get_collision_layer())

On this page