19.5.15 setLayers

self = physics.Shape:setLayers(layers)

Parameter

Type

Description

self

in physics.Shape

The input Shape

layers

in number

A bitmap of integer layer numbers. This implementation permits 32 layers

self

out physics.Shape

The input Shape is returned as the output

Sets the layers that the shape inhabits. Shapes only collide if they are in the same layer. layers is an integer bitmap of all the layers that the shape occupies. Returns self.

Introduced in platform.apiLevel = '2.0'