The y position where the pre-collision event occurred. Note that the reported collision position can be influenced by physics.getAverageCollisionPositions() and physics.setReportCollisionsInContentCoordinates().
local function onPreCollision( event )
print( "position: " .. event.x .. "," .. event.y )
© 2017 Corona Labs Inc. All Rights Reserved. (Last updated: 25-Jul-2017)
Help us help you! If you notice a problem with this page, please report it.
Report an Issue