event.friction

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

Overview

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

Example

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

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