You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Physics Library > sensor

19.5.10 sensor

s = physics.Shape:sensor()

Parameter

Type

Description

self

in physics.Shape

The input Shape

s

out boolean

True if the Shape is a sensor

Returns true if the shape is a sensor.

Introduced in platform.apiLevel = '2.0'