event.y

Type Number
Event postCollision
Revision Current Public Release (2017.3068)
Keywords postCollision, y
See also event.x

Overview

The y 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