Type Number Event preCollision Revision 2017.3060 Keywords preCollision, y See also event.x
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 )
end