event.friction

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