event.x

Type Number
Event postCollision
Revision 2017.3060
Keywords postCollision, x
See also event.y

Overview

The x position where the post-collision event occurred. Note that the reported collision position can be influenced by physics.getAverageCollisionPositions() and physics.setReportCollisionsInContentCoordinates().

Example

local function onPostCollision( event )
    print( "position: " .. event.x .. "," .. event.y )
end