19.13.1 pointQuery

physics.Space:pointQuery(point, layers, group, 
                         function(shape) ... end)

Parameter

Type

Description

self

in physics.Space

The input Space

point

in physics.Vect

A point

layers

in number

A bitmap of the layers.
Match if shape.layers intersects layers

group

in number

The group number to check.
Match if Shape is not in group

function

function(shape)

A function to call providing each Shape in turn that matches the criteria

Queries the Space for all shapes that contain point and match layers but not in group. The
function is called with each matching Shape. Sensor Shapes are included.

Introduced in platform.apiLevel = '2.0'