event.force

Type Number
Event postCollision
Revision Release 2024.3703
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" )