The x position where the post-collision event occurred. Note that the reported collision position can be influenced by physics.setAverageCollisionPositions() and physics.setReportCollisionsInContentCoordinates().
local function onPostCollision( event )
print( "position: " .. event.x .. "," .. event.y )
© 2020-2023 Solar2D All Rights Reserved.
Help us help you! If you notice a problem with this page, please report it.
Report an Issue