Type Function Library physics.* Return value none Revision Release 2022.3683 Keywords Box2D, internal, asserts, error See also physics.getDebugErrorsEnabled()
This function allows extra physics errors to be caught by Box2D.
This feature is currently available only in the Corona Simulator for macOS.
physics.setDebugErrorsEnabled( enabled )
Boolean. Allow extra physics errors to be caught by Box2D.
-- Toggle extra physics errors for debugging if ( physics.getDebugErrorsEnabled() ) then physics.setDebugErrorsEnabled( false ) else physics.setDebugErrorsEnabled( true ) end