I’m trying the example on http://developer.anscamobile.com/content/game-edition-physics-bodies#Sensors
local rect = display.newRect( 50, 50, 100, 100 )
rect:setFillColor( 255, 255, 255, 100 )
rect.isVisible = false – optional
physics.newSimpleBody( rect, { isSensor = true } )
and all I get is:
Runtime error: attempt to call field ‘newSimpleBody’ (a nil value) [import]uid: 8434 topic_id: 1953 reply_id: 301953[/import]