19.5.7 layers

layers = physics.Shape:layers()

Parameter

Type

Description

self

in physics.Shape

The input Shape

layers

out number

A bitmap of the layers this shape occupies

Returns the bitmap of layers the shape occupies.

Introduced in platform.apiLevel = '2.0'