Type Function Library physics.* Return value none Revision 2017.3060 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