event.force

Type Number
Event postCollision
Revision 2017.3122
Keywords postCollision, force
See also event.friction

Overview

The direct force of the post-collision as reported with the current event.

Example

local function onPostCollision( self, event )
    print( "force: " .. event.force )
    print( "friction: " .. event.friction )
end

object.postCollision = onPostCollision
object:addEventListener( "postCollision" )